Mercurial > sdl-ios-xcode
comparison configure.in @ 3649:1e74d7984d0b
The config sets the default assertion level so people can override it for their own use in application code.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 13 Jan 2010 07:25:28 +0000 |
parents | c5925cd41955 |
children | 336f3df1578d |
comparison
equal
deleted
inserted
replaced
3648:a9d830c05998 | 3649:1e74d7984d0b |
---|---|
140 [Enable internal sanity checks (yes/no/release/paranoid) [[default=release]]]), | 140 [Enable internal sanity checks (yes/no/release/paranoid) [[default=release]]]), |
141 , enable_assertions=release) | 141 , enable_assertions=release) |
142 sdl_valid_assertion_level=no | 142 sdl_valid_assertion_level=no |
143 if test x$enable_assertions = xno; then | 143 if test x$enable_assertions = xno; then |
144 sdl_valid_assertion_level=yes | 144 sdl_valid_assertion_level=yes |
145 AC_DEFINE(SDL_ASSERT_LEVEL, 0) | 145 AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 0) |
146 fi | 146 fi |
147 if test x$enable_assertions = xrelease; then | 147 if test x$enable_assertions = xrelease; then |
148 sdl_valid_assertion_level=yes | 148 sdl_valid_assertion_level=yes |
149 AC_DEFINE(SDL_ASSERT_LEVEL, 1) | 149 AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 1) |
150 fi | 150 fi |
151 if test x$enable_assertions = xyes; then | 151 if test x$enable_assertions = xyes; then |
152 sdl_valid_assertion_level=yes | 152 sdl_valid_assertion_level=yes |
153 AC_DEFINE(SDL_ASSERT_LEVEL, 2) | 153 AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 2) |
154 fi | 154 fi |
155 if test x$enable_assertions = xparanoid; then | 155 if test x$enable_assertions = xparanoid; then |
156 sdl_valid_assertion_level=yes | 156 sdl_valid_assertion_level=yes |
157 AC_DEFINE(SDL_ASSERT_LEVEL, 3) | 157 AC_DEFINE(SDL_DEFAULT_ASSERT_LEVEL, 3) |
158 fi | 158 fi |
159 if test x$sdl_valid_assertion_level = xno; then | 159 if test x$sdl_valid_assertion_level = xno; then |
160 AC_MSG_ERROR([*** unknown assertion level. stop.]) | 160 AC_MSG_ERROR([*** unknown assertion level. stop.]) |
161 fi | 161 fi |
162 | 162 |