comparison include/SDL_assert.h @ 3652:dbd6a29e4b77

Fixed release level assertions
author Sam Lantinga <slouken@libsdl.org>
date Wed, 13 Jan 2010 07:36:00 +0000
parents 91460fdfe83a
children 1cd9f7117b98
comparison
equal deleted inserted replaced
3651:cb5b1aedb5a7 3652:dbd6a29e4b77
126 #if SDL_ASSERT_LEVEL == 0 /* assertions disabled */ 126 #if SDL_ASSERT_LEVEL == 0 /* assertions disabled */
127 # define SDL_assert(condition) SDL_disabled_assert(condition) 127 # define SDL_assert(condition) SDL_disabled_assert(condition)
128 # define SDL_assert_release(condition) SDL_disabled_assert(condition) 128 # define SDL_assert_release(condition) SDL_disabled_assert(condition)
129 # define SDL_assert_paranoid(condition) SDL_disabled_assert(condition) 129 # define SDL_assert_paranoid(condition) SDL_disabled_assert(condition)
130 #elif SDL_ASSERT_LEVEL == 1 /* release settings. */ 130 #elif SDL_ASSERT_LEVEL == 1 /* release settings. */
131 # define SDL_assert(condition) SDL_enabled_assert(condition) 131 # define SDL_assert(condition) SDL_disabled_assert(condition)
132 # define SDL_assert_release(condition) SDL_enabled_assert(condition) 132 # define SDL_assert_release(condition) SDL_enabled_assert(condition)
133 # define SDL_assert_paranoid(condition) SDL_enabled_assert(condition) 133 # define SDL_assert_paranoid(condition) SDL_disabled_assert(condition)
134 #elif SDL_ASSERT_LEVEL == 2 /* normal settings. */ 134 #elif SDL_ASSERT_LEVEL == 2 /* normal settings. */
135 # define SDL_assert(condition) SDL_enabled_assert(condition) 135 # define SDL_assert(condition) SDL_enabled_assert(condition)
136 # define SDL_assert_release(condition) SDL_enabled_assert(condition) 136 # define SDL_assert_release(condition) SDL_enabled_assert(condition)
137 # define SDL_assert_paranoid(condition) SDL_disabled_assert(condition) 137 # define SDL_assert_paranoid(condition) SDL_disabled_assert(condition)
138 #elif SDL_ASSERT_LEVEL == 3 /* paranoid settings. */ 138 #elif SDL_ASSERT_LEVEL == 3 /* paranoid settings. */