Add ability to disable debug printing and gdb symbols

This commit is contained in:
2017-12-07 12:59:01 +01:00
parent a9831c1038
commit 572bee19cc
3 changed files with 11 additions and 2 deletions

View File

@@ -2,7 +2,11 @@
#include <stddef.h>
#include <stdarg.h>
#ifndef NDEBUG
#define debug(...) debug_printf(__VA_ARGS__)
#else
#define debug(...)
#endif
void debug_putch(char c);
void debug_putsn(char *s, size_t n);