summaryrefslogtreecommitdiff
path: root/include/ruby/backward/2
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-06-07 14:12:04 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-09-10 20:00:06 +0900
commit7ead69068edaddf62487d6525b8fe29231566947 (patch)
tree990b5d716c91f0dd060f8a150068cc6a035a661a /include/ruby/backward/2
parentf05dc8b44a1d546ed1046860454f92b094efb475 (diff)
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]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4815
Diffstat (limited to 'include/ruby/backward/2')
-rw-r--r--include/ruby/backward/2/long_long.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/ruby/backward/2/long_long.h b/include/ruby/backward/2/long_long.h
index 936232bc40..8e6b2743fc 100644
--- a/include/ruby/backward/2/long_long.h
+++ b/include/ruby/backward/2/long_long.h
@@ -29,7 +29,15 @@
#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() \