From 63b47fc45234081e183ed2b2b6d68a26b84faf94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berke=20Kocao=C4=9Flu?= Date: Wed, 18 Sep 2024 17:46:00 +0300 Subject: [PATCH] macros.hpp: make `NOOP()` accept variadic arguments The passed arguments are ignored. --- src/cpp/include/macros.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/include/macros.hpp b/src/cpp/include/macros.hpp index e305a158..ec337985 100644 --- a/src/cpp/include/macros.hpp +++ b/src/cpp/include/macros.hpp @@ -3,8 +3,8 @@ #define COMMA , -#define NOOP() \ - do { \ +#define NOOP(...) \ + do { \ } while (false) #define SIMPLE_NAMEOF(x) #x