diff options
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -68,18 +68,7 @@ extern std::ostream * warning_stream; extern std::ostream * debug_stream; extern bool free_debug_stream; -inline bool _debug_active(const char * const cls) { - if (char * debug = std::getenv("DEBUG_CLASS")) { - static const char * error; - static int erroffset; - static int ovec[30]; - static pcre * class_regexp = pcre_compile(debug, PCRE_CASELESS, - &error, &erroffset, NULL); - return pcre_exec(class_regexp, NULL, cls, std::strlen(cls), - 0, 0, ovec, 30) >= 0; - } - return false; -} +bool _debug_active(const char * const cls); #define DEBUG_CLASS(cls) static const char * const _debug_cls = (cls) |