Replace BUILD_DEBUG by NDEBUG
Use the "standard" NDEBUG definition, which is used by assert().
This commit is contained in:
parent
73e8ec1b35
commit
b5ebb234dd
3 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ endif
|
||||||
conf = configuration_data()
|
conf = configuration_data()
|
||||||
|
|
||||||
# expose the build type
|
# expose the build type
|
||||||
conf.set('BUILD_DEBUG', get_option('buildtype') == 'debug')
|
conf.set('NDEBUG', get_option('buildtype') != 'debug')
|
||||||
|
|
||||||
# the version, updated on release
|
# the version, updated on release
|
||||||
conf.set_quoted('SCRCPY_VERSION', meson.project_version())
|
conf.set_quoted('SCRCPY_VERSION', meson.project_version())
|
||||||
|
|
|
@ -625,7 +625,7 @@ main(int argc, char *argv[]) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef BUILD_DEBUG
|
#ifndef NDEBUG
|
||||||
SDL_LogSetAllPriority(SDL_LOG_PRIORITY_DEBUG);
|
SDL_LogSetAllPriority(SDL_LOG_PRIORITY_DEBUG);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ find_color(struct index *index, int len, char c, uint32_t *color) {
|
||||||
// (non-const) "char *"
|
// (non-const) "char *"
|
||||||
SDL_Surface *
|
SDL_Surface *
|
||||||
read_xpm(char *xpm[]) {
|
read_xpm(char *xpm[]) {
|
||||||
#if SDL_ASSERT_LEVEL >= 2
|
#ifndef NDEBUG
|
||||||
// patch the XPM to change the icon color in debug mode
|
// patch the XPM to change the icon color in debug mode
|
||||||
xpm[2] = ". c #CC00CC";
|
xpm[2] = ". c #CC00CC";
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue