summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/debug.h b/debug.h
index 75c7b5b3..2873ef7a 100644
--- a/debug.h
+++ b/debug.h
@@ -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)