diff options
| author | Tom Harley | 2020-01-24 05:15:35 +0000 |
|---|---|---|
| committer | Tom Harley | 2020-01-24 05:15:35 +0000 |
| commit | c9f0de12be31eea463bf022f3eee76490b30f8dc (patch) | |
| tree | a80718ff00fa2dcb1c52c2af6828feffc7f89d8b /debug.h | |
| download | parapat-master.tar.gz parapat-master.zip | |
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 */ |
