Browse Source

*** empty log message ***

David Rose 24 years ago
parent
commit
3eb794fa60
1 changed files with 8 additions and 0 deletions
  1. 8 0
      dtool/src/dconfig/notifyCategoryProxy.I

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

@@ -71,7 +71,11 @@ is_on(NotifySeverity severity) {
 template<class GetCategory>
 template<class GetCategory>
 INLINE bool NotifyCategoryProxy<GetCategory>::
 INLINE bool NotifyCategoryProxy<GetCategory>::
 is_spam() {
 is_spam() {
+#ifndef NDEBUG
   return get_unsafe_ptr()->is_spam();
   return get_unsafe_ptr()->is_spam();
+#else
+  return false;
+#endif
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -82,7 +86,11 @@ is_spam() {
 template<class GetCategory>
 template<class GetCategory>
 INLINE bool NotifyCategoryProxy<GetCategory>::
 INLINE bool NotifyCategoryProxy<GetCategory>::
 is_debug() {
 is_debug() {
+#ifndef NDEBUG
   return get_unsafe_ptr()->is_debug();
   return get_unsafe_ptr()->is_debug();
+#else
+  return false;
+#endif
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////