Salome HOME
Fix compilation pb.
[modules/kernel.git] / src / SALOMELocalTrace / utilities.h
index dab74d492211ab21c14d6ce94cfc1250621cad64..c20c835a06c1fe7c841f9a495f56c25246c6db27 100644 (file)
 #error INFOS_COMPILATION already defined
 #endif
 
+#if defined(_DEBUG_) || defined(_DEBUG)
+
+// --- the following MACROS are useful at debug time
+
 #define INFOS_COMPILATION { MESS_BEGIN("COMPILED with ") << COMPILER \
                                       << ", " << __DATE__ \
                                       << " at " << __TIME__ << MESS_END }
-#ifdef _DEBUG_
-
-// --- the following MACROS are useful at debug time
 
 #define MESSAGE(msg) {MESS_BEGIN("- Trace ") << msg << MESS_END}
 #define SCRUTE(var)  {MESS_BEGIN("- Trace ") << #var << "=" << var <<MESS_END}
 
 #else /* ifdef _DEBUG_*/
 
+#define INFOS_COMPILATION
 #define MESSAGE(msg) {}
 #define SCRUTE(var) {}
 #define REPERE