From a2f7e37d8adf2047e1f3b0ea1227ac9d51514783 Mon Sep 17 00:00:00 2001 From: Matthew Wozniak Date: Fri, 1 Nov 2024 13:47:31 -0400 Subject: play demo using the demoplayer object --- log.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'log.h') diff --git a/log.h b/log.h index 61bf8a9..f0655b2 100644 --- a/log.h +++ b/log.h @@ -2,17 +2,24 @@ // SPDX-FileCopyrightText: 2024 Matthew Wozniak #include -#include #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 -- cgit v1.2.3-54-g00ecf