summaryrefslogtreecommitdiff
path: root/include/ruby/impl/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/impl/config.h')
-rw-r--r--include/ruby/impl/config.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/ruby/impl/config.h b/include/ruby/impl/config.h
index 4697aa9d31..df259d0137 100644
--- a/include/ruby/impl/config.h
+++ b/include/ruby/impl/config.h
@@ -1,5 +1,5 @@
-#ifndef RUBY3_CONFIG_H /*-*-C++-*-vi:se ft=cpp:*/
-#define RUBY3_CONFIG_H
+#ifndef RBIMPL_CONFIG_H /*-*-C++-*-vi:se ft=cpp:*/
+#define RBIMPL_CONFIG_H
/**
* @file
* @author Ruby developers <[email protected]>
@@ -7,7 +7,7 @@
* Permission is hereby granted, to either redistribute and/or
* modify this file, provided that the conditions mentioned in the
* file COPYING are met. Consult the file for details.
- * @warning Symbols prefixed with either `RUBY3` or `ruby3` are
+ * @warning Symbols prefixed with either `RBIMPL` or `ruby3` are
* implementation details. Don't take them as canon. They could
* rapidly appear then vanish. The name (path) of this header file
* is also an implementation detail. Do not expect it to persist
@@ -48,19 +48,19 @@
# define HAVE_VA_ARGS_MACRO
# elif defined(__INTEL_CXX11_MODE__)
# define HAVE_VA_ARGS_MACRO
-# elif RUBY3_COMPILER_SINCE(MSVC, 16, 0, 0)
+# elif RBIMPL_COMPILER_SINCE(MSVC, 16, 0, 0)
# define HAVE_VA_ARGS_MACRO
# else
# /* NG, not known. */
# endif
#endif
-#if RUBY3_COMPILER_BEFORE(GCC, 4, 9, 0)
+#if RBIMPL_COMPILER_BEFORE(GCC, 4, 9, 0)
# /* See https://bugs.ruby-lang.org/issues/14221 */
# undef HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P
#endif
-#if RUBY3_COMPILER_BEFORE(GCC, 5, 0, 0)
+#if RBIMPL_COMPILER_BEFORE(GCC, 5, 0, 0)
# /* GCC 4.9.2 reportedly has this feature and is broken. The function is not
# * officially documented below. Seems we should not use it.
# * https://gcc.gnu.org/onlinedocs/gcc-4.9.4/gcc/Other-Builtins.html */
@@ -115,17 +115,17 @@
#else
# /* Idea taken from: https://stackoverflow.com/a/48045656 */
-# define RUBY3_TEST3(q, w, e, ...) e
-# define RUBY3_TEST2(...) RUBY3_TEST3(__VA_OPT__(,),1,0,0)
-# define RUBY3_TEST1() RUBY3_TEST2("ruby")
-# if RUBY3_TEST1()
+# define RBIMPL_TEST3(q, w, e, ...) e
+# define RBIMPL_TEST2(...) RBIMPL_TEST3(__VA_OPT__(,),1,0,0)
+# define RBIMPL_TEST1() RBIMPL_TEST2("ruby")
+# if RBIMPL_TEST1()
# define HAVE___VA_OPT__
# else
# undef HAVE___VA_OPT__
# endif
-# undef RUBY3_TEST1
-# undef RUBY3_TEST2
-# undef RUBY3_TEST3
+# undef RBIMPL_TEST1
+# undef RBIMPL_TEST2
+# undef RBIMPL_TEST3
#endif /* HAVE_VA_ARGS_MACRO */
-#endif /* RUBY3_CONFIG_H */
+#endif /* RBIMPL_CONFIG_H */