From 32de3441111f67d6330526a2d825775e0af19591 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 2 Apr 2006 09:31:06 +0000 Subject: Move gDebugLevel to common/util.cpp (where most other debug() related stuff already is) svn-id: r21551 --- common/util.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'common/util.cpp') diff --git a/common/util.cpp b/common/util.cpp index 0945161c1b..9649d35ef4 100644 --- a/common/util.cpp +++ b/common/util.cpp @@ -341,6 +341,18 @@ const Array &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) -- cgit v1.2.3