Add Mix_GetError, Mix_SetError, Mix_ClearError

Adding `Mix_GetError`, `Mix_SetError`, `Mix_ClearError` as per the SDL_mixer header file:

/* We'll use SDL for reporting errors */
#define Mix_SetError    SDL_SetError
#define Mix_GetError    SDL_GetError
#define Mix_ClearError  SDL_ClearError
This commit is contained in:
Jeremy Sayers 2021-11-14 12:50:39 -05:00 committed by Ethan Lee
parent db935863bb
commit 4e9088b49d

View file

@ -646,6 +646,21 @@ namespace SDL2
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void Mix_CloseAudio(); public static extern void Mix_CloseAudio();
public static string Mix_GetError()
{
return SDL.SDL_GetError();
}
public static void Mix_SetError(string fmtAndArglist)
{
SDL.SDL_SetError(fmtAndArglist);
}
public static void Mix_ClearError()
{
SDL.SDL_ClearError();
}
#endregion #endregion
} }
} }