mirror of https://github.com/ppy/SDL3-CS.git
Add `void *` overload for `SDL_free()`
Useful as any pointer type can implicitly covert to void *.
This commit is contained in:
parent
42b196611d
commit
702dc06a03
|
|
@ -19,5 +19,7 @@ namespace SDL
|
|||
{
|
||||
[Macro]
|
||||
public static uint SDL_FOURCC(byte A, byte B, byte C, byte D) => (uint)((A << 0) | (B << 8) | (C << 16) | (D << 24));
|
||||
|
||||
public static unsafe void SDL_free(void* mem) => SDL_free((IntPtr)mem);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue