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:
Jeremy Sayers 2021-11-14 09:22:47 -05:00 committed by Ethan Lee
parent ec5e8d8357
commit db935863bb

View file

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