Skip to content

Commit

Permalink
macros.hpp: make NOOP() accept variadic arguments
Browse files Browse the repository at this point in the history
The passed arguments are ignored.
  • Loading branch information
XPhyro committed Sep 18, 2024
1 parent ec1a462 commit 63b47fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/include/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#define COMMA ,

#define NOOP() \
do { \
#define NOOP(...) \
do { \
} while (false)

#define SIMPLE_NAMEOF(x) #x
Expand Down

0 comments on commit 63b47fc

Please sign in to comment.