summaryrefslogtreecommitdiffstats
path: root/src/debug.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2013-09-15 17:50:40 (GMT)
committeralbert-github <albert.tests@gmail.com>2013-09-15 17:50:40 (GMT)
commitb0572abe0c3e8dc47551638da45b31ee37153ea6 (patch)
treef457563c309ca1b414aae64a9045f9db993a0c5b /src/debug.cpp
parent6dbc429a78966233c02b339193c5bb642d281df0 (diff)
downloadDoxygen-b0572abe0c3e8dc47551638da45b31ee37153ea6.zip
Doxygen-b0572abe0c3e8dc47551638da45b31ee37153ea6.tar.gz
Doxygen-b0572abe0c3e8dc47551638da45b31ee37153ea6.tar.bz2
Usage of the -d opion corrected
Giving an error when a wrong -d option is given. Made some error mesages more consistent. Corrected usage of the exit call, in case of an error: exit(1) otherwise exit(0). A closer look should be made on exitDoxygen as it does not contain any exit statements and it is unclear (to me) when it is used.
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index c962214..c67ce22 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -97,9 +97,11 @@ static int labelToEnumValue(const char *l)
if (event) return *event; else return 0;
}
-void Debug::setFlag(const char *lab)
+int Debug::setFlag(const char *lab)
{
+ int retVal = labelToEnumValue(lab);
curMask = (DebugMask)(curMask | labelToEnumValue(lab));
+ return retVal;
}
void Debug::clearFlag(const char *lab)