Add `void *` overload for `SDL_free()`

Useful as any pointer type can implicitly covert to void *.
This commit is contained in:
Susko3 2024-04-06 14:07:38 +02:00
parent 42b196611d
commit 702dc06a03
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}