diff options
Diffstat (limited to 'debug.h')
| -rw-r--r-- | debug.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +#ifndef DEBUG_H +#define DEBUG_H + +#ifndef NDEBUG + +#include <assert.h> +#include <stdio.h> + +#define debug(x) printf x + +#else + +#define assert(x) +#define debug(x) (x) + +#endif /* NDEBUG */ + +#endif /* DEBUG_H */ |
