From 4e9e88ac1cc0cab27b311ad39bd3d7e7df990d2b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 4 Feb 2007 13:28:17 +0000 Subject: Added Common::getEnabledSpecialDebugLevels svn-id: r25383 --- common/util.cpp | 9 +++++++-- common/util.h | 7 +++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/common/util.cpp b/common/util.cpp index 2a4aacafe0..693285ff26 100644 --- a/common/util.cpp +++ b/common/util.cpp @@ -297,8 +297,8 @@ const char *getRenderModeDescription(RenderMode id) { #pragma mark - -Array gDebugLevels; -uint32 gDebugLevelsEnabled = 0; +static Array gDebugLevels; +static uint32 gDebugLevelsEnabled = 0; bool addSpecialDebugLevel(uint32 level, const String &option, const String &description) { for (uint i = 0; i < gDebugLevels.size(); ++i) { @@ -358,6 +358,11 @@ const Array &listSpecialDebugLevels() { return gDebugLevels; } +uint32 getEnabledSpecialDebugLevels() { + return gDebugLevelsEnabled; +} + + } // End of namespace Common diff --git a/common/util.h b/common/util.h index 9f5008f418..93b16a3c2e 100644 --- a/common/util.h +++ b/common/util.h @@ -262,6 +262,13 @@ bool disableSpecialDebugLevel(const String &option); */ const Array &listSpecialDebugLevels(); +/** + * Return the active debug flag mask (i.e. all active debug flags ORed + * together into a single uint32). + */ +uint32 getEnabledSpecialDebugLevels(); + + } // End of namespace Common -- cgit v1.2.3