Changeset 11057 for OpenSceneGraph/trunk/include/osg/Notify
- Timestamp:
- 02/12/10 12:45:00 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Notify (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Notify
r11047 r11057 46 46 extern OSG_EXPORT NotifySeverity getNotifyLevel(); 47 47 48 /** is notification enabled, given the current setNotifyLevel() setting? */49 extern OSG_EXPORT bool isNotifyEnabled(NotifySeverity severity);50 51 48 /** initialize notify level. */ 52 49 extern OSG_EXPORT bool initNotifyLevel(); 50 51 #ifdef OSG_NOTIFY_DISABLED 52 inline bool isNotifyEnabled(NotifySeverity) { return false; } 53 #else 54 /** is notification enabled, given the current setNotifyLevel() setting? */ 55 extern OSG_EXPORT bool isNotifyEnabled(NotifySeverity severity); 56 #endif 53 57 54 58 /** notify messaging function for providing fatal through to verbose … … 77 81 78 82 #define OSG_NOTIFY(level) if (isNotifyEnabled(level)) osg::notify(level) 79 80 #if _DEBUG 81 #define OSG_DEBUG_NOTIFY(level) if (isNotifyEnabled(level)) osg::notify(level) 82 #else 83 // when using an optimized build use if (false) to tell the compiler to ignore the rest of the notify. 84 #define OSG_DEBUG_NOTIFY(level) if (false) osg::notify(level) 85 #endif 83 #define OSG_FATAL OSG_NOTIFY(osg::FALTAL) 84 #define OSG_WARN OSG_NOTIFY(osg::WARN) 85 #define OSG_NOTICE OSG_NOTIFY(osg::NOTICE) 86 #define OSG_INFO OSG_NOTIFY(osg::INFO) 87 #define OSG_DEBUG OSG_NOTIFY(osg::DEBUG_INFO) 86 88 87 89 /** Handler processing output of notification stream. It acts as a sink to
