Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Added a simple log message API
  • Loading branch information
slouken committed Feb 8, 2011
1 parent 0b69bdc commit 564ad838f5b3078d5dbcc6b9ab95f94761c16b32

File 10 of 13 in 564ad83

@@ -215,45 +215,26 @@ void
SDL_Quit(void)
{
/* Quit all subsystems */
#ifdef DEBUG_BUILD
printf("[SDL_Quit] : Enter! Calling QuitSubSystem()\n");
fflush(stdout);
#endif

#if defined(__WIN32__)
SDL_HelperWindowDestroy();
#endif
SDL_QuitSubSystem(SDL_INIT_EVERYTHING);

#ifdef CHECK_LEAKS
#ifdef DEBUG_BUILD
printf("[SDL_Quit] : CHECK_LEAKS\n");
fflush(stdout);
#endif

/* !!! FIXME: make this an assertion. */
/* Print the number of surfaces not freed */
if (surfaces_allocated != 0) {
fprintf(stderr, "SDL Warning: %d SDL surfaces extant\n",
surfaces_allocated);
}
#endif
#ifdef DEBUG_BUILD
printf("[SDL_Quit] : SDL_UninstallParachute()\n");
fflush(stdout);
#endif

/* Uninstall any parachute signal handlers */
SDL_UninstallParachute();

SDL_ClearHints();
SDL_AssertionsQuit();

#ifdef DEBUG_BUILD
printf("[SDL_Quit] : Returning!\n");
fflush(stdout);
#endif

SDL_LogResetPriorities();
}

/* Get the library version number */

0 comments on commit 564ad83

Please sign in to comment.