comparison src/SDL.c @ 3663:bc50cd16bb07

Moved the assertion tests to testplatform
author Sam Lantinga <slouken@libsdl.org>
date Wed, 13 Jan 2010 09:48:42 +0000
parents c5925cd41955
children 47d923feedb0
comparison
equal deleted inserted replaced
3662:6a0b3048f271 3663:bc50cd16bb07
178 178
179 /* Everything is initialized */ 179 /* Everything is initialized */
180 if (!(flags & SDL_INIT_NOPARACHUTE)) { 180 if (!(flags & SDL_INIT_NOPARACHUTE)) {
181 SDL_InstallParachute(); 181 SDL_InstallParachute();
182 } 182 }
183
184 /* brief sanity checks for the sanity checks. :) */
185 SDL_assert(1);
186 SDL_assert_release(1);
187 SDL_assert_paranoid(1);
188 SDL_assert(0 || 1);
189 SDL_assert_release(0 || 1);
190 SDL_assert_paranoid(0 || 1);
191
192 #if 0 /* enable this to test assertion failures. */
193 SDL_assert_release(1 == 2);
194 SDL_assert_release(5 < 4);
195 SDL_assert_release(0 && "This is a test");
196 #endif
197 183
198 return (0); 184 return (0);
199 } 185 }
200 186
201 void 187 void