From e00efb4381c5123699e4ef9807b67eba54ea06a0 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Sat, 28 Aug 2021 22:27:24 +0200 Subject: Initial fanout implemented --- src/log.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/log.h (limited to 'src/log.h') diff --git a/src/log.h b/src/log.h new file mode 100644 index 0000000..1717011 --- /dev/null +++ b/src/log.h @@ -0,0 +1,20 @@ +#pragma once + +#include + +#define dbg(format, ...) \ + dbgl(format "\n", ## __VA_ARGS__) + +#define dbgl(format, ...) \ + printf(format, ## __VA_ARGS__); \ + fflush(stderr) + +#define err(format, ...) \ + printf(format "\n", ## __VA_ARGS__); \ + fflush(stderr) + +#define fatal(format, ...) \ + printf(format "\n", ## __VA_ARGS__); \ + fflush(stderr); \ + abort() + -- cgit v1.2.3