11 #ifndef USE_DEBUG_COUNTER 12 #define USE_DEBUG_COUNTER 0 15 #ifdef RB_DEBUG_COUNTER 71 #ifndef RUBY_DEBUG_COUNTER_H 72 #define RUBY_DEBUG_COUNTER_H 1 74 #if !defined(__GNUC__) && USE_DEBUG_COUNTER 75 #error "USE_DEBUG_COUNTER is not supported by other than __GNUC__" 79 #define RB_DEBUG_COUNTER(name) RB_DEBUG_COUNTER_##name, 82 #undef RB_DEBUG_COUNTER 88 extern size_t rb_debug_counter[];
94 rb_debug_counter[(int)type] += add;
99 #define RB_DEBUG_COUNTER_INC(type) rb_debug_counter_add(RB_DEBUG_COUNTER_##type, 1, 1) 100 #define RB_DEBUG_COUNTER_INC_UNLESS(type, cond) (!rb_debug_counter_add(RB_DEBUG_COUNTER_##type, 1, !(cond))) 101 #define RB_DEBUG_COUNTER_INC_IF(type, cond) rb_debug_counter_add(RB_DEBUG_COUNTER_##type, 1, (cond)) 104 #define RB_DEBUG_COUNTER_INC(type) ((void)0) 105 #define RB_DEBUG_COUNTER_INC_UNLESS(type, cond) (cond) 106 #define RB_DEBUG_COUNTER_INC_IF(type, cond) (cond)
#define cond(node, column)
#define RB_DEBUG_COUNTER(name)