aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/debug.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2016-03-01 18:40:38 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2016-03-13 09:12:11 +0100
commit946c9ce10a92a29584d2e68e9c04fe63dcee7bdc (patch)
treef400ab2212900957e358ef236f07307492ecf2d9 /src/common/debug.h
initial git import
Diffstat (limited to 'src/common/debug.h')
-rw-r--r--src/common/debug.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/common/debug.h b/src/common/debug.h
new file mode 100644
index 0000000..cb2c92b
--- /dev/null
+++ b/src/common/debug.h
@@ -0,0 +1,20 @@
+
+#define DEBUG_DEBUG 0 /* debug info, not for normal use */
+#define DEBUG_INFO 1 /* all info about process */
+#define DEBUG_NOTICE 2 /* something unexpected happens */
+#define DEBUG_ERROR 3 /* there is an error with this software */
+
+#define DSENDER 0
+#define DSOUND 1
+#define DFSK 2
+#define DAUDIO 3
+#define DANETZ 4
+#define DBNETZ 5
+#define DCALL 6
+#define DMNCC 7
+
+#define PDEBUG(cat, level, fmt, arg...) _printdebug(__FILE__, __FUNCTION__, __LINE__, cat, level, fmt, ## arg)
+void _printdebug(const char *file, const char *function, int line, int cat, int level, const char *fmt, ...);
+
+extern int debuglevel;
+