diff options
Diffstat (limited to 'src/command.h')
| -rw-r--r-- | src/command.h | 8 |
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'." |
