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

ruby-changes:67816

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 10 Sep 2021 20:02:20 +0900 (JST)
Subject: [ruby-changes:67816] 7ead69068e (master): include/ruby/backward/2/long_long.h: add doxygen

https://git.ruby-lang.org/ruby.git/commit/?id=7ead69068e

From 7ead69068edaddf62487d6525b8fe29231566947 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: Mon, 7 Jun 2021 14:12:04 +0900
Subject: include/ruby/backward/2/long_long.h: add doxygen

Might want to delete LONG_LONG macro but for the time being let us
describe what on earth it is. [ci skip]
---
 include/ruby/backward/2/long_long.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/include/ruby/backward/2/long_long.h b/include/ruby/backward/2/long_long.h
index 936232b..8e6b274 100644
--- a/include/ruby/backward/2/long_long.h
+++ b/include/ruby/backward/2/long_long.h
@@ -29,7 +29,15 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/backward/2/long_long.h#L29
 #include "ruby/internal/has/warning.h"
 #include "ruby/internal/warning_push.h"
 
-#if RBIMPL_HAS_WARNING("-Wc++11-long-long")
+#if defined(__DOXYGEN__)
+# /** @cond INTERNAL_MACRO */
+# define HAVE_LONG_LONG 1
+# define HAVE_TRUE_LONG_LONG 1
+# /** @endcond */
+# /** @deprecated  Just use `long long` directly. */
+# define LONG_LONG long long.
+
+#elif RBIMPL_HAS_WARNING("-Wc++11-long-long")
 # define HAVE_TRUE_LONG_LONG 1
 # define LONG_LONG                           \
     RBIMPL_WARNING_PUSH()                     \
-- 
cgit v1.1


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

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