From babef2ec1d88b6057b0e17bf1c04dfa3c9d0d5a0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 27 Oct 2007 13:17:31 +0000 Subject: conditional -DDEBUG messages --- src/common/console.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common/console.h') diff --git a/src/common/console.h b/src/common/console.h index 609c99a..5f80e73 100644 --- a/src/common/console.h +++ b/src/common/console.h @@ -14,8 +14,13 @@ #define conmesg common::Console::instance->message() /// global define to send a warning message to the system console #define conwarn common::Console::instance->warning() + +#ifdef DEBUG /// global define to send a debug message to the system console #define condebug common::Console::instance->debug() +#else +#define condebug if (0) *(std::ostream*)(0) +#endif // DEBUG namespace common { -- cgit v1.2.3