diff options
| author | Jesper Jensen <jesper@slashwin.dk> | 2021-09-25 21:04:29 +0200 |
|---|---|---|
| committer | Jesper Jensen <jesper@slashwin.dk> | 2021-09-25 21:04:29 +0200 |
| commit | c46781095ec64fbc4f8cf6097ca70b594a68c583 (patch) | |
| tree | 902aa3ef642d603f54d6d62bc1f42b6b948619da /src/log.h | |
| parent | b5127f1c7624f40437159f164ac8eabc50b65f74 (diff) | |
Add timeout
Diffstat (limited to 'src/log.h')
| -rw-r--r-- | src/log.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -6,13 +6,15 @@ #define dbg(format, ...) \ dbgl(format "\n", ## __VA_ARGS__) -#define dbgl(format, ...) \ - printf(format, ## __VA_ARGS__); \ - fflush(stderr) +#define dbgl(format, ...) do{\ + printf(format, ## __VA_ARGS__); \ + fflush(stderr); \ + } while(0) -#define err(format, ...) \ - printf(format "\n", ## __VA_ARGS__); \ - fflush(stderr) +#define err(format, ...) do{\ + printf(format "\n", ## __VA_ARGS__); \ + fflush(stderr); \ + } while(0) #define fatal(format, ...) do{\ printf(format "\n", ## __VA_ARGS__); \ |
