From cfe01c9f8b7ac0d82e694323b60fc172e0c35a48 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Thu, 28 Dec 2023 06:40:07 -0600 Subject: [wip] version stuff --- src/command.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/command.h') diff --git a/src/command.h b/src/command.h index 7709292..76a9166 100644 --- a/src/command.h +++ b/src/command.h @@ -54,6 +54,14 @@ enum { #define CMD_WARN(_s, ...) CMD_MSG("warn", _s, __VA_ARGS__) #define CMD_WARN0(_s) CMD_MSG0("warn", _s) +#ifdef NDEBUG +#define CMD_DEBUG(_s, ...) +#define CMD_DEBUG0(_s) +#else +#define CMD_DEBUG(_s, ...) CMD_MSG("debug", _s, __VA_ARGS__) +#define CMD_DEBUG0(_s) CMD_MSG0("debug", _s) +#endif + #define CMD_MSG_UNKNOWN_ARGUMENT "Unknown argument '%s'." #define CMD_MSG_REQ_ARG_UNSPECIFIED "Required argument '%s' not specified." #define CMD_MSG_INVALID_UUID "Invalid UUID '%s'." -- cgit v1.2.3-70-g09d2