Explorar o código

*** empty log message ***

David Rose %!s(int64=25) %!d(string=hai) anos
pai
achega
67ceff871f
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      dtool/src/dconfig/notifyCategory.I

+ 8 - 0
dtool/src/dconfig/notifyCategory.I

@@ -64,7 +64,11 @@ is_on(NotifySeverity severity) const {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE bool NotifyCategory::
 INLINE bool NotifyCategory::
 is_spam() const {
 is_spam() const {
+#ifndef NDEBUG
   return is_on(NS_spam);
   return is_on(NS_spam);
+#else
+  return false;
+#endif
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -74,7 +78,11 @@ is_spam() const {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE bool NotifyCategory::
 INLINE bool NotifyCategory::
 is_debug() const {
 is_debug() const {
+#ifndef NDEBUG
   return is_on(NS_debug);
   return is_on(NS_debug);
+#else
+  return false;
+#endif
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////