src/SDL_assert.c
changeset 3656 f17ea6f49745
parent 3655 1cc7f0143c12
child 3657 eaea59cee6f2
equal deleted inserted replaced
3655:1cc7f0143c12 3656:f17ea6f49745
   243 static void SDL_AbortAssertion(void)
   243 static void SDL_AbortAssertion(void)
   244 {
   244 {
   245     SDL_Quit();
   245     SDL_Quit();
   246 #ifdef _WINDOWS
   246 #ifdef _WINDOWS
   247     ExitProcess(42);
   247     ExitProcess(42);
   248 #elif unix || __APPLE__
   248 #else
   249     _exit(42);
   249     _exit(42);
   250 #else
       
   251     #error Please define your platform or set SDL_ASSERT_LEVEL to 0.
       
   252 #endif
   250 #endif
   253 }
   251 }
   254     
   252     
   255 
   253 
   256 static SDL_assert_state SDL_PromptAssertion(const SDL_assert_data *data)
   254 static SDL_assert_state SDL_PromptAssertion(const SDL_assert_data *data)
   398     assertion_mutex = NULL;
   396     assertion_mutex = NULL;
   399 #endif
   397 #endif
   400 }
   398 }
   401 
   399 
   402 /* vi: set ts=4 sw=4 expandtab: */
   400 /* vi: set ts=4 sw=4 expandtab: */
   403