From c39e77c27e53b12c13b39e0d71930f17068bf3c3 Mon Sep 17 00:00:00 2001 From: SchoenleAndi Date: Wed, 19 Oct 2016 13:39:24 +0200 Subject: [PATCH] DBUG-vs-DEBUG in main_ programs fixed --- example/main_contract.cpp | 5 +++++ example/main_fatal_choice.cpp | 5 +++++ example/main_sigsegv.cpp | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/example/main_contract.cpp b/example/main_contract.cpp index e20bf39..fa6441b 100644 --- a/example/main_contract.cpp +++ b/example/main_contract.cpp @@ -30,6 +30,11 @@ namespace example_fatal } } // example fatal +#ifdef CHANGE_G3LOG_DEBUG_TO_DBUG +#undef DEBUG +#define DEBUG DBUG +#endif + int main(int argc, char **argv) { double pi_d = 3.1415926535897932384626433832795; diff --git a/example/main_fatal_choice.cpp b/example/main_fatal_choice.cpp index d0101f0..7cf591b 100644 --- a/example/main_fatal_choice.cpp +++ b/example/main_fatal_choice.cpp @@ -24,6 +24,11 @@ #define NOEXCEPT throw() #endif +#ifdef CHANGE_G3LOG_DEBUG_TO_DBUG +#undef DEBUG +#define DEBUG DBUG +#endif + namespace { #if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__)) diff --git a/example/main_sigsegv.cpp b/example/main_sigsegv.cpp index 7b6cf30..5316624 100644 --- a/example/main_sigsegv.cpp +++ b/example/main_sigsegv.cpp @@ -22,6 +22,11 @@ namespace #endif } +#ifdef CHANGE_G3LOG_DEBUG_TO_DBUG +#undef DEBUG +#define DEBUG DBUG +#endif + namespace example_fatal { // on Ubunti this caused get a compiler warning with gcc4.6