summaryrefslogtreecommitdiffstats
path: root/src/debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index d7f1ba8..96be18d 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -43,6 +43,8 @@ static int labelToEnumValue(const char *l)
return Debug::Functions;
else if (label=="Variables")
return Debug::Variables;
+ else if (label=="Preprocessor")
+ return Debug::Preprocessor;
else
return 0;
}
@@ -61,3 +63,8 @@ void Debug::setPriority(int p)
{
curPrio = p;
}
+
+bool Debug::isFlagSet(DebugMask mask)
+{
+ return (curMask & mask)!=0;
+}