added namespace Grim

This commit is contained in:
Pawel Kolodziejski
2009-05-25 06:49:57 +00:00
parent ac7307728b
commit 8b8e7e07d2
122 changed files with 615 additions and 156 deletions
+15 -2
View File
@@ -50,6 +50,20 @@
#define fflush(file) DS::std_fflush(file)
#endif
namespace Common {
namespace {
static enDebugLevels gDebugLevel = DEBUG_NONE;
}
enDebugLevels getDebugLevel() {
return gDebugLevel;
}
} // End of namespace Common
#ifndef DISABLE_TEXT_CONSOLE
static void debugHelper(const char *s, va_list va, bool caret = true) {
@@ -90,7 +104,7 @@ void debug(const char *s, ...) {
void debug(int level, const char *s, ...) {
va_list va;
if (level > gDebugLevel)
if (level > Common::getDebugLevel())
return;
va_start(va, s);
@@ -213,4 +227,3 @@ const char *debug_descriptions[] = {
"Chore debug messages will be printed",
"All debug messages will be printed",
};