mirror of
https://github.com/Ryujinx/SDL2-CS.git
synced 2025-01-03 20:05:40 +00:00
Add TTF_GetError and TTF_SetError
Adding some missing functions to SDL2_ttf that are just wrappers of the `SDL_GetError` and `SDL_SetError` as per the SDL_ttf header: ``` /* We'll use SDL for reporting errors */ #define TTF_SetError SDL_SetError #define TTF_GetError SDL_GetError ```
This commit is contained in:
parent
ec5e8d8357
commit
db935863bb
|
@ -754,6 +754,16 @@ namespace SDL2
|
||||||
ushort ch
|
ushort ch
|
||||||
);
|
);
|
||||||
|
|
||||||
|
public static string TTF_GetError()
|
||||||
|
{
|
||||||
|
return SDL.SDL_GetError();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void TTF_SetError(string fmtAndArglist)
|
||||||
|
{
|
||||||
|
SDL.SDL_SetError(fmtAndArglist);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue