diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-21 13:30:58 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-21 13:30:58 +0000 |
commit | 28f6096586bf4e3465140f48f1eae54f11fef88d (patch) | |
tree | cad019bc88da694a12706c0cf23ef48e4a84f6df /src/debug.cpp | |
parent | 995eea38b362e9c57abfb5354a8b6e1af6dd3637 (diff) | |
download | manaserv-28f6096586bf4e3465140f48f1eae54f11fef88d.tar.gz manaserv-28f6096586bf4e3465140f48f1eae54f11fef88d.tar.bz2 manaserv-28f6096586bf4e3465140f48f1eae54f11fef88d.tar.xz manaserv-28f6096586bf4e3465140f48f1eae54f11fef88d.zip |
Some header fixes, formatting conventions and moved DevCpp project file.
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index b601ac0c..09b730a8 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -25,25 +25,17 @@ #include "debug.h" // global debugging flag (set to false in release version) -int debugflag=false; +int debugflag = false; - -/* debugCatch - * returns a message on function failure if the debug flag is set to true - * Execution: O(1) -- Linear - * Preconditions: TRUE - * Postconditions: TRUE - * --- by Kyokai - */ - void debugCatch(int result) { - if(!debugflag) + if (!debugflag) { return; // break out if we are not debugging + } - switch(result) + switch (result) { case TMW_SUCCESS: // function successful return; @@ -64,5 +56,4 @@ void debugCatch(int result) // show a message break; } - -}
\ No newline at end of file +} |