From ba970012619481c6dae577b75324f2007c4ceba4 Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Sat, 30 Nov 2019 12:05:21 +0800 Subject: [PATCH] Enable assertions in debug build --- configure | 4 + configure.ac | 2 + src/.cproject | 274 ++++++++++++++-------------- src/.settings/language.settings.xml | 102 +++++++++++ src/xmlcopyeditor.cpp | 2 +- src/xmlcopyeditor.h | 2 - 6 files changed, 249 insertions(+), 137 deletions(-) create mode 100644 src/.settings/language.settings.xml diff --git a/configure b/configure index ae37d92..79a0d4e 100755 --- a/configure +++ b/configure @@ -16686,6 +16686,10 @@ if test "${enable_debug+set}" = set; then : debugbuild="y" CXXFLAGS="${CXXFLAGS} -ggdb -O0" +else + + CXXFLAGS="${CXXFLAGS} -DNDEBUG -DwxDEBUG_LEVEL=0" + fi diff --git a/configure.ac b/configure.ac index b2f170c..0ce29db 100755 --- a/configure.ac +++ b/configure.ac @@ -98,6 +98,8 @@ AC_ARG_ENABLE(debug, [ debugbuild="y" CXXFLAGS="${CXXFLAGS} -ggdb -O0" +], [ + CXXFLAGS="${CXXFLAGS} -DNDEBUG -DwxDEBUG_LEVEL=0" ]) # Check pcre is available diff --git a/src/.cproject b/src/.cproject index 2a0f303..0acb74e 100644 --- a/src/.cproject +++ b/src/.cproject @@ -4,20 +4,20 @@ + - + - - + @@ -27,16 +27,16 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -