Added Common::getEnabledSpecialDebugLevels

svn-id: r25383
This commit is contained in:
Max Horn 2007-02-04 13:28:17 +00:00
parent 8ae2be31e0
commit 4e9e88ac1c
2 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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