diff options
author | John Wiegley <johnw@newartisans.com> | 2005-11-09 07:11:22 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:21 -0400 |
commit | f691735c6ce89a19356769084449d3f5691ab030 (patch) | |
tree | df7a5de60353d3558b00d21ee83cf01e8da56331 /timing.h | |
parent | 3a689c568a715e7c6604825eab537d66333ce291 (diff) | |
download | ledger-f691735c6ce89a19356769084449d3f5691ab030.tar.gz ledger-f691735c6ce89a19356769084449d3f5691ab030.tar.bz2 ledger-f691735c6ce89a19356769084449d3f5691ab030.zip |
Restructed the code that it can build and be used as a shared library.
The command-line version is still statically bound in the build
process by default (for the sake of speed).
Diffstat (limited to 'timing.h')
-rw-r--r-- | timing.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -41,10 +41,12 @@ class timing_t #ifdef DEBUG_ENABLED #define TIMER_DEF(sym, cat) static timing_t sym(#sym, cat) +#define TIMER_DEF_(sym) static timing_t sym(#sym, #sym) #define TIMER_START(sym) sym.start(__FILE__, __LINE__) #define TIMER_STOP(sym) sym.stop() #else #define TIMER_DEF(sym, cat) +#define TIMER_DEF_(sym) #define TIMER_START(sym) #define TIMER_STOP(sym) #endif |