Moved the assertion tests to testplatform
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404414
This commit is contained in:
parent
6bb89ae342
commit
c47e208c6b
2 changed files with 23 additions and 14 deletions
14
src/SDL.c
14
src/SDL.c
|
@ -181,20 +181,6 @@ SDL_Init(Uint32 flags)
|
|||
SDL_InstallParachute();
|
||||
}
|
||||
|
||||
/* brief sanity checks for the sanity checks. :) */
|
||||
SDL_assert(1);
|
||||
SDL_assert_release(1);
|
||||
SDL_assert_paranoid(1);
|
||||
SDL_assert(0 || 1);
|
||||
SDL_assert_release(0 || 1);
|
||||
SDL_assert_paranoid(0 || 1);
|
||||
|
||||
#if 0 /* enable this to test assertion failures. */
|
||||
SDL_assert_release(1 == 2);
|
||||
SDL_assert_release(5 < 4);
|
||||
SDL_assert_release(0 && "This is a test");
|
||||
#endif
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue