diff options
author | Matthew Wozniak <me@woz.blue> | 2024-11-01 13:47:31 -0400 |
---|---|---|
committer | Matthew Wozniak <me@woz.blue> | 2024-11-01 13:48:09 -0400 |
commit | a2f7e37d8adf2047e1f3b0ea1227ac9d51514783 (patch) | |
tree | 2942ee2a12abe02e27f119552221c6a06ac87273 /log.h | |
parent | fb95177298bb92098b61f09b9f66c1fce32f2f02 (diff) | |
download | rt-a2f7e37d8adf2047e1f3b0ea1227ac9d51514783.tar.gz rt-a2f7e37d8adf2047e1f3b0ea1227ac9d51514783.zip |
play demo using the demoplayer object
Diffstat (limited to 'log.h')
-rw-r--r-- | log.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2,17 +2,24 @@ // SPDX-FileCopyrightText: 2024 Matthew Wozniak <me@woz.blue>
#include <stdio.h>
-#include <stdlib.h>
#define die(fmt, ...) {\
fprintf(stderr, "err: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__); \
exit(1); \
}
+#define bail(fmt, ...) {\
+ fprintf(stderr, "err: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__); \
+ return false; \
+}
+
#define warn(fmt, ...) \
fprintf(stderr, "warn: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__)
#define info(fmt, ...) \
fprintf(stderr, "info: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__)
+#define debug(fmt, ...) \
+ fprintf(stderr, "dbg: %s: " fmt "\n", __func__ __VA_OPT__(,) __VA_ARGS__)
+
// vi: sw=4 ts=4 noet tw=80 cc=80
|