What's safe to call before SDL_Init / after SDL_Quit?


#1

Obviously the majority of SDL2 functions require that SDL2 is initialized when you call them. However, near as I can gather, there are a limited number of functions that are safe to call before SDL_Init. Naturally I suppose they’re safe to call after SDL_Quit too.

  • SDL_Log and other logging functions
  • SDL_GetError and other error related functions
  • SDL_ShowMessageBox and SDL_ShowSimpleMessageBox

Is there documentation on an exact list of functions that can be called before SDL_Init or after SDL_Quit? For example, can things from SDL_stdinc.h such as SDL_malloc, SDL_free, SDL_strln and so on all safely be used when SDL2 isn’t initialized? I would hope at least those ones.