mirror of https://github.com/libsdl-org/SDL.git
build_config: fix `SDL_DEFAULT_ASSERT_LEVEL`
Currently, `SDL_DEFAULT_ASSERT_LEVEL` is commented out by CMake when its value is 0, setting the assertions level to the default value instead of disabling them. This change: - defines `SDL_DEFAULT_ASSERT_LEVEL_CONFIGURED` when its value is non-zero. - defines `SDL_DEFAULT_ASSERT_LEVEL`, regardless of its value, when `SDL_DEFAULT_ASSERT_LEVEL_CONFIGURED` is defined.
This commit is contained in:
parent
e73d98ad72
commit
ade829d7ca
|
|
@ -228,8 +228,9 @@
|
|||
#cmakedefine USE_POSIX_SPAWN @USE_POSIX_SPAWN@
|
||||
|
||||
/* SDL internal assertion support */
|
||||
#if @SDL_DEFAULT_ASSERT_LEVEL_CONFIGURED@
|
||||
#cmakedefine SDL_DEFAULT_ASSERT_LEVEL @SDL_DEFAULT_ASSERT_LEVEL@
|
||||
#cmakedefine SDL_DEFAULT_ASSERT_LEVEL_CONFIGURED 1
|
||||
#ifdef SDL_DEFAULT_ASSERT_LEVEL_CONFIGURED
|
||||
#define SDL_DEFAULT_ASSERT_LEVEL @SDL_DEFAULT_ASSERT_LEVEL@
|
||||
#endif
|
||||
|
||||
/* Allow disabling of major subsystems */
|
||||
|
|
|
|||
Loading…
Reference in New Issue