Move gDebugLevel to common/util.cpp (where most other debug() related stuff already is)

svn-id: r21551
This commit is contained in:
Max Horn 2006-04-02 09:31:06 +00:00
parent 2fd027846e
commit 32de344111
2 changed files with 12 additions and 8 deletions

View File

@ -143,14 +143,6 @@ const char *gScummVMFeatures = ""
#endif
;
/**
* The debug level. Initially set to -1, indicating that no debug output
* should be shown. Positive values usually imply an increasing number of
* debug output shall be generated, the higher the value, the more verbose the
* information (although the exact semantics are up to the engines).
*/
int gDebugLevel = -1;
static void setupDummyPalette(OSystem &system) {
// FIXME - mouse cursors are currently always set via 8 bit data.
// Thus for now we need to setup a dummy palette. On the long run, we might

View File

@ -341,6 +341,18 @@ const Array<EngineDebugLevel> &listSpecialDebugLevels() {
} // End of namespace Common
/**
* The debug level. Initially set to -1, indicating that no debug output
* should be shown. Positive values usually imply an increasing number of
* debug output shall be generated, the higher the value, the more verbose the
* information (although the exact semantics are up to the engines).
*/
int gDebugLevel = -1;
static void debugHelper(char *buf, bool caret = true) {
#ifndef _WIN32_WCE
if (caret)