aboutsummaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/debug.h b/debug.h
index f42dd73..53626ef 100644
--- a/debug.h
+++ b/debug.h
@@ -1,6 +1,16 @@
#include <features.h>
-void debug_(int level, char *file, int line, const char *func, char *fmt, ...);
+void debug_(int level, const char *file, int line, const char *func, const char *fmt, ...);
+
+int xwrite(const char *, size_t);
+int xwrites(const char *);
+int xwritehexi(int);
+int xwritehexl(long);
+int xwritec(char);
+int xwritecr(void);
+int xwritedump(void *, long, int);
+int xinfdump(long, void *, int);
+
# define debug(level, expr...) debug_(level, __FILE__, __LINE__, DEBUG_FUNCTION, expr)