A macro for debug printing

This commit is contained in:
thomas committed 2018-03-20 14:11:21 +01:00
1 parent a652bbb05e
commit a9831c1038
1 file changed
+2
+2
View File
@@ -2,6 +2,8 @@
#include <stddef.h> #include <stddef.h>
#include <stdarg.h> #include <stdarg.h>
#define debug(...) debug_printf(__VA_ARGS__)
void debug_putch(char c); void debug_putch(char c);
void debug_putsn(char *s, size_t n); void debug_putsn(char *s, size_t n);
void debug_puts(char *s); void debug_puts(char *s);