aboutsummaryrefslogtreecommitdiff
path: root/common/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/util.cpp')
-rw-r--r--common/util.cpp9
1 files changed, 7 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