Salome HOME
projects
/
modules
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cbd321
)
Avoid debug messages in Release mode
author
vsr
<vsr@opencascade.com>
Thu, 12 Dec 2013 10:11:39 +0000
(10:11 +0000)
committer
vsr
<vsr@opencascade.com>
Thu, 12 Dec 2013 10:11:39 +0000
(10:11 +0000)
src/Basics/Basics_Utils.hxx
patch
|
blob
|
history
diff --git
a/src/Basics/Basics_Utils.hxx
b/src/Basics/Basics_Utils.hxx
index 80f2f5ed92327e86539a32ca47c4cda7d4047ccb..15778758c31c94452b9f7532f32c3a9b5ecd52db 100644
(file)
--- a/
src/Basics/Basics_Utils.hxx
+++ b/
src/Basics/Basics_Utils.hxx
@@
-128,7
+128,12
@@
double ToDouble(const T &arg) {
// Simple Logger macros (no dependency with SALOME)
// =============================================================
//
+#if defined(_DEBUG_) || defined(_DEBUG)
#define STDLOG(msg) {std::cerr<<std::flush<<__FILE__<<" ["<<__LINE__<<"] : "<<msg<<std::endl<<std::flush;}
+#else
+#define STDLOG(msg)
+#endif
+
#ifdef LOG
#undef LOG
#endif