Mercurial > sdl-ios-xcode
comparison src/SDL_assert.c @ 3656:f17ea6f49745
Assume _exit() is available. It may be, even if unix isn't defined.
If we really have to, we can add a configure check for it.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 13 Jan 2010 08:30:34 +0000 |
parents | 1cc7f0143c12 |
children | eaea59cee6f2 |
comparison
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 |