summaryrefslogtreecommitdiffstats
path: root/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/debug.h b/debug.h
index 7d540b5..0614747 100644
--- a/debug.h
+++ b/debug.h
@@ -2,6 +2,9 @@
#define __DEBUG_H__ 1
//#define printf_debug(x...) printf(x)
-#define printf_debug(x...) { }
+
+extern int verbose;
+
+#define printf_debug(x...) { if(verbose) printf(x); }
#endif
OpenPOWER on IntegriCloud