summaryrefslogtreecommitdiff
path: root/client/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/debug.cc')
-rw-r--r--client/debug.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/debug.cc b/client/debug.cc
index 282cf93..6eed1ad 100644
--- a/client/debug.cc
+++ b/client/debug.cc
@@ -129,6 +129,11 @@ void dbg_hide()
if(debugwindow) debugwindow->hide();
}
+bool dbg_enabled()
+{
+ return debugwindow != NULL;
+}
+
void dbg_log(const char *func, const char *file, const int line,
debug_class cl, const char *ch, const char *fmt, ...)
{