Skip to content

Commit

Permalink
Remove redundant __VA_OPT__-related code
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryAWE committed Oct 4, 2024
1 parent d5958a2 commit 65f8faf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
4 changes: 0 additions & 4 deletions example/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ int main()
println("PAPILIO_HAS_LIB_EXPECTED = {:d}L", PAPILIO_HAS_LIB_EXPECTED);
#endif

#ifdef PAPILIO_HAS_VA_OPT
println("PAPILIO_HAS_VA_OPT defined");
#endif

println("PAPILIO_HAS_UNREACHABLE = {}", PAPILIO_HAS_UNREACHABLE);
#ifdef PAPILIO_HAS_ENUM_NAME
println("PAPILIO_HAS_ENUM_NAME = {}", PAPILIO_HAS_ENUM_NAME);
Expand Down
11 changes: 0 additions & 11 deletions include/papilio/detail/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,6 @@
# pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
#endif

#define PAPILIO_HAS_VA_OPT_HELPER(_0, _1, result, ...) result
#define PAPILIO_HAS_VA_OPT_IMPL(...) \
PAPILIO_HAS_VA_OPT_HELPER(__VA_OPT__(, ), 1, 0)

#if PAPILIO_HAS_VA_OPT_IMPL(_0) == 1
# define PAPILIO_HAS_VA_OPT 1
#endif

#undef PAPILIO_HAS_VA_OPT_HELPER
#undef PAPILIO_HAS_VA_OPT_IMPL

#ifdef PAPILIO_COMPILER_CLANG
# pragma clang diagnostic pop
#endif
Expand Down

0 comments on commit 65f8faf

Please sign in to comment.