diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-05 16:15:09 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-05 16:15:09 -0400 |
commit | 290cac7b84b60305e185c140645c9bac2ca9fb0e (patch) | |
tree | c389da2eed81612ffb3868f61c31fa2534855fe1 /src/utils.h | |
parent | f8bfbf8c250fa24bc9e26b9bf1eb64815a5a29ee (diff) | |
parent | 1417b40fdf0a92a85ab01f233c0ae076079901a2 (diff) | |
download | fork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.tar.gz fork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.tar.bz2 fork-ledger-290cac7b84b60305e185c140645c9bac2ca9fb0e.zip |
Merge branch 'next'
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/utils.h b/src/utils.h index a0c3f49f..9135abde 100644 --- a/src/utils.h +++ b/src/utils.h @@ -49,17 +49,17 @@ */ /*@{*/ +#define TIMERS_ON 1 + #if defined(DEBUG_MODE) #define VERIFY_ON 1 #define TRACING_ON 1 #define DEBUG_ON 1 -#define TIMERS_ON 1 #elif defined(NDEBUG) #define NO_ASSERTS 1 -#define NO_LOGGING 1 +//#define NO_LOGGING 1 #else #define TRACING_ON 1 // use --trace X to enable -#define TIMERS_ON 1 #endif /*@}*/ @@ -434,8 +434,8 @@ void finish_timer(const char * name); (SHOW_TRACE(lvl) ? ledger::finish_timer(#name) : ((void)0)) #else #define TRACE_START(name, lvl, msg) -#define TRACE_STOP(name) -#define TRACE_FINISH(name) +#define TRACE_STOP(name, lvl) +#define TRACE_FINISH(name, lvl) #endif #if defined(DEBUG_ON) @@ -474,8 +474,8 @@ void finish_timer(const char * name); #else // ! (LOGGING_ON && TIMERS_ON) #define TRACE_START(lvl, msg, name) -#define TRACE_STOP(name) -#define TRACE_FINISH(name) +#define TRACE_STOP(name, lvl) +#define TRACE_FINISH(name, lvl) #define DEBUG_START(name, msg) #define DEBUG_START_(name, cat, msg) |