[前][次][番号順一覧][スレッド一覧]

ruby-changes:60736

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 10 Apr 2020 23:08:59 +0900 (JST)
Subject: [ruby-changes:60736] 108d392efd (master): RUBY3_HAS_ATTRIBUTE: fix fallbacks

https://git.ruby-lang.org/ruby.git/commit/?id=108d392efd

From 108d392efd6166216b67250e5246d6cd3a90c50c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Fri, 10 Apr 2020 23:07:23 +0900
Subject: RUBY3_HAS_ATTRIBUTE: fix fallbacks

Same as 133ae0807d661eac174b59c6e91c11a40975baea

diff --git a/include/ruby/3/has/attribute.h b/include/ruby/3/has/attribute.h
index 05af8e6..36a1a12 100644
--- a/include/ruby/3/has/attribute.h
+++ b/include/ruby/3/has/attribute.h
@@ -91,62 +91,62 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/3/has/attribute.h#L91
 
 #else
 # /* Take config.h definition when available. */
-# define RUBY3_HAS_ATTRIBUTE(_) RUBY3_TOKEN_PASTE(RUBY3_HAS_ATTRIBUTE_, _)
+# define RUBY3_HAS_ATTRIBUTE(_) (RUBY3_TOKEN_PASTE(RUBY3_HAS_ATTRIBUTE_, _)+0)
 # ifdef ALWAYS_INLINE
-#  define RUBY3_HAS_ATTRIBUTE_always_inline
+#  define RUBY3_HAS_ATTRIBUTE_always_inline 1
 # endif
 # ifdef FUNC_CDECL
-#  define RUBY3_HAS_ATTRIBUTE_cdecl
+#  define RUBY3_HAS_ATTRIBUTE_cdecl 1
 # endif
 # ifdef CONSTFUNC
-#  define RUBY3_HAS_ATTRIBUTE_const
+#  define RUBY3_HAS_ATTRIBUTE_const 1
 # endif
 # ifdef DEPRECATED
-#  define RUBY3_HAS_ATTRIBUTE_deprecated
+#  define RUBY3_HAS_ATTRIBUTE_deprecated 1
 # endif
 # ifdef ERRORFUNC
-#  define RUBY3_HAS_ATTRIBUTE_error
+#  define RUBY3_HAS_ATTRIBUTE_error 1
 # endif
 # ifdef FUNC_FASTCALL
-#  define RUBY3_HAS_ATTRIBUTE_fastcall
+#  define RUBY3_HAS_ATTRIBUTE_fastcall 1
 # endif
 # ifdef PUREFUNC
-#  define RUBY3_HAS_ATTRIBUTE_pure
+#  define RUBY3_HAS_ATTRIBUTE_pure 1
 # endif
 # ifdef NO_ADDRESS_SAFETY_ANALYSIS
-#  define RUBY3_HAS_ATTRIBUTE_no_address_safety_analysis
+#  define RUBY3_HAS_ATTRIBUTE_no_address_safety_analysis 1
 # endif
 # ifdef NO_SANITIZE
-#  define RUBY3_HAS_ATTRIBUTE_no_sanitize
+#  define RUBY3_HAS_ATTRIBUTE_no_sanitize 1
 # endif
 # ifdef NO_SANITIZE_ADDRESS
-#  define RUBY3_HAS_ATTRIBUTE_no_sanitize_address
+#  define RUBY3_HAS_ATTRIBUTE_no_sanitize_address 1
 # endif
 # ifdef NOINLINE
-#  define RUBY3_HAS_ATTRIBUTE_noinline
+#  define RUBY3_HAS_ATTRIBUTE_noinline 1
 # endif
 # ifdef RUBY3_FUNC_NONNULL
-#  define RUBY3_HAS_ATTRIBUTE_nonnull
+#  define RUBY3_HAS_ATTRIBUTE_nonnull 1
 # endif
 # ifdef NORETURN
-#  define RUBY3_HAS_ATTRIBUTE_noreturn
+#  define RUBY3_HAS_ATTRIBUTE_noreturn 1
 # endif
 # ifdef FUNC_OPTIMIZED
-#  define RUBY3_HAS_ATTRIBUTE_optimize
+#  define RUBY3_HAS_ATTRIBUTE_optimize 1
 # endif
 # ifdef FUNC_STDCALL
-#  define RUBY3_HAS_ATTRIBUTE_stdcall
+#  define RUBY3_HAS_ATTRIBUTE_stdcall 1
 # endif
 # ifdef MAYBE_UNUSED
-#  define RUBY3_HAS_ATTRIBUTE_unused
+#  define RUBY3_HAS_ATTRIBUTE_unused 1
 # endif
 # ifdef WARN_UNUSED_RESULT
-#  define RUBY3_HAS_ATTRIBUTE_warn_unused_result
+#  define RUBY3_HAS_ATTRIBUTE_warn_unused_result 1
 # endif
 # ifdef WARNINGFUNC
-#  define RUBY3_HAS_ATTRIBUTE_warning
+#  define RUBY3_HAS_ATTRIBUTE_warning 1
 # endif
 # ifdef WEAK
-#  define RUBY3_HAS_ATTRIBUTE_weak
+#  define RUBY3_HAS_ATTRIBUTE_weak 1
 # endif
 #endif
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]