aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/util.cpp9
-rw-r--r--common/util.h7
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<EngineDebugLevel> gDebugLevels;
-uint32 gDebugLevelsEnabled = 0;
+static Array<EngineDebugLevel> 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<EngineDebugLevel> &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<EngineDebugLevel> &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