No, SDL is saying don't call atexit(SDL_Quit)
from within a library. GNU advise you set up atexit
within your library to avoid cleanup problems, SDL is saying don't call it from a different library - due to the manner in which dynamic code gets unloaded you can't be certain of ordering (especially in multithreaded apps).
Short version: call atexit(SDL_Quit)
inside your program's main. If you are using or writing a wrapper library around SDL, don't call atexit(SDL_Quit)
inside that library, instead call atexit(YOURLIBRARY_Quit)
inside the main function (presuming that YOURLIBRARY_Quit
will handle the call to SDL_Quit
.