Go to the documentation of this file.
13 #ifndef __UT_ShowCounts__
14 #define __UT_ShowCounts__
16 #if defined(SHOW_COUNTS) && UT_ASSERT_LEVEL > 0
17 #if !defined(UT_DEBUG)
25 #define UT_COUNTER(name, label) static UT_Counter name(label);
26 #define UT_INC_COUNTER(name) name++;
27 #define UT_ADD_COUNTER(name, amount) name += amount;
28 #define UT_DEC_COUNTER(name) name--;
29 #define UT_MAX_COUNTER(name, value) name.max(value);
31 #define UT_COUNTER(name, label)
32 #define UT_INC_COUNTER(name)
33 #define UT_ADD_COUNTER(name, amount)
34 #define UT_DEC_COUNTER(name)
35 #define UT_MAX_COUNTER(name, value)