aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.h
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2023-12-28 06:40:07 -0600
committerLibravatar bigfoot547 <[email protected]>2023-12-28 06:40:07 -0600
commitcfe01c9f8b7ac0d82e694323b60fc172e0c35a48 (patch)
tree6f02144b38fcb2a4c5116e412f9ed4b0cc711728 /src/command.h
parentadd cheap SHA1 implementation (diff)
[wip] version stuff
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h8
1 files changed, 8 insertions, 0 deletions
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'."