Skip to content

Commit 6656678

Browse files
committed
Always define HAVE_VA_ARGS_MACRO on TruffleRuby
1 parent c932d5b commit 6656678

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/cext/include/ruby/internal/config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
# define HAVE_VA_ARGS_MACRO
5757
# else
5858
# /* NG, not known. */
59+
// Always define HAVE_VA_ARGS_MACRO on TruffleRuby, as it leads to cleaner macros and more optimizations:
60+
// clang++ on macOS Ventura has __cplusplus defined as 199711 but it supports newer standards like c++11
61+
#ifdef TRUFFLERUBY
62+
#define HAVE_VA_ARGS_MACRO
63+
#endif
5964
# endif
6065
#endif
6166

0 commit comments

Comments
 (0)