From e1d0dbf220a5301f6125a1548a380492ad488515 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 9 Nov 2005 07:11:22 +0000 Subject: 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). --- timing.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'timing.h') diff --git a/timing.h b/timing.h index bc7fdfe2..9a80df2f 100644 --- a/timing.h +++ b/timing.h @@ -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 -- cgit v1.2.3