[Scummvm-cvs-logs] SF.net SVN: scummvm: [25383] scummvm/trunk/common

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Feb 4 14:28:18 CET 2007


Revision: 25383
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25383&view=rev
Author:   fingolfin
Date:     2007-02-04 05:28:17 -0800 (Sun, 04 Feb 2007)

Log Message:
-----------
Added Common::getEnabledSpecialDebugLevels

Modified Paths:
--------------
    scummvm/trunk/common/util.cpp
    scummvm/trunk/common/util.h

Modified: scummvm/trunk/common/util.cpp
===================================================================
--- scummvm/trunk/common/util.cpp	2007-02-04 13:04:36 UTC (rev 25382)
+++ scummvm/trunk/common/util.cpp	2007-02-04 13:28:17 UTC (rev 25383)
@@ -297,8 +297,8 @@
 
 #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 @@
 	return gDebugLevels;
 }
 
+uint32 getEnabledSpecialDebugLevels() {
+	return gDebugLevelsEnabled;
+}
+
+
 }	// End of namespace Common
 
 

Modified: scummvm/trunk/common/util.h
===================================================================
--- scummvm/trunk/common/util.h	2007-02-04 13:04:36 UTC (rev 25382)
+++ scummvm/trunk/common/util.h	2007-02-04 13:28:17 UTC (rev 25383)
@@ -262,6 +262,13 @@
  */
 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
 
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list