Kaynağa Gözat

*** empty log message ***

David Rose 24 yıl önce
ebeveyn
işleme
3eb794fa60
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  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>
 INLINE bool NotifyCategoryProxy<GetCategory>::
 is_spam() {
+#ifndef NDEBUG
   return get_unsafe_ptr()->is_spam();
+#else
+  return false;
+#endif
 }
 
 ////////////////////////////////////////////////////////////////////
@@ -82,7 +86,11 @@ is_spam() {
 template<class GetCategory>
 INLINE bool NotifyCategoryProxy<GetCategory>::
 is_debug() {
+#ifndef NDEBUG
   return get_unsafe_ptr()->is_debug();
+#else
+  return false;
+#endif
 }
 
 ////////////////////////////////////////////////////////////////////