Salome HOME
Corrected implementation of MESSAGE functionality on Windows
[modules/kernel.git] / src / SALOMELocalTrace / utilities.h
index 654f615066cabadb6344341f622b3051dd70d3c8..c20c835a06c1fe7c841f9a495f56c25246c6db27 100644 (file)
@@ -17,7 +17,7 @@
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
 #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