summaryrefslogtreecommitdiffstats
path: root/src/debug.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2013-12-14 14:22:57 (GMT)
committeralbert-github <albert.tests@gmail.com>2013-12-14 14:22:57 (GMT)
commitcdbcb67c28d1f11b086713906afa8e0963065483 (patch)
treecbaad720d56d2da31c748cc6106662f46fb8812f /src/debug.cpp
parente82e063bf51b9789d79ee94d5dfe8760f551111e (diff)
downloadDoxygen-cdbcb67c28d1f11b086713906afa8e0963065483.zip
Doxygen-cdbcb67c28d1f11b086713906afa8e0963065483.tar.gz
Doxygen-cdbcb67c28d1f11b086713906afa8e0963065483.tar.bz2
usage: make -d print dev doxygen options
This is an extension / improvement to the pull request 67 from groleo - make printing of -d levels more flexible (when adding a new one this is now done automatically) - layout of the message
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index 1942355..a2b2707 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -21,6 +21,7 @@
#include <qdict.h>
#include "debug.h"
+#include "message.h"
//------------------------------------------------------------------------
@@ -120,3 +121,14 @@ bool Debug::isFlagSet(DebugMask mask)
return (curMask & mask)!=0;
}
+void Debug::printFlags(void)
+{
+ int i;
+ for (i = 0; i < sizeof(s_labels)/sizeof(*s_labels); i++)
+ {
+ if (s_labels[i].name)
+ {
+ msg("\t%s\n",s_labels[i].name);
+ }
+ }
+}