From 5d5cdaca5a343526be775446068cc2cd1df83c4b Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 24 Mar 2024 04:06:27 +0100 Subject: [PATCH] Variadic DEBUG macro --- uart.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uart.h b/uart.h index dfa0cc4..70e6231 100644 --- a/uart.h +++ b/uart.h @@ -3,9 +3,9 @@ // Define DEBUG_UART_ENABLED to enable debug messages #ifdef DEBUG_UART_ENABLED -#define DEBUG(message) UART_println(message) +#define DEBUG(...) UART_println(__VA_ARGS__) #else -#define DEBUG(message) ((void)0) // Define as no operation (NOP) +#define DEBUG(...) ((void)0) // Define as no operation (NOP) #endif #include