aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/3/attr/noinline.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/3/attr/noinline.h')
-rw-r--r--include/ruby/3/attr/noinline.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/ruby/3/attr/noinline.h b/include/ruby/3/attr/noinline.h
index 4483c4c8d6..e5eca8eaef 100644
--- a/include/ruby/3/attr/noinline.h
+++ b/include/ruby/3/attr/noinline.h
@@ -1,4 +1,6 @@
-/** \noop-*-C++-*-vi:ft=cpp
+#ifndef RUBY3_ATTR_NOINLINE_H /*-*-C++-*-vi:se ft=cpp:*/
+#define RUBY3_ATTR_NOINLINE_H
+/**
* @file
* @author Ruby developers <ruby-core@ruby-lang.org>
* @copyright This file is a part of the programming language Ruby.
@@ -21,15 +23,12 @@
#include "ruby/3/has/declspec_attribute.h"
/** Wraps (or simulates) `__declspec(noinline)` */
-#if defined(RUBY3_ATTR_NOINLINE)
-# /* Take that. */
-
-#elif RUBY3_HAS_DECLSPEC_ATTRIBUTE(noinline)
+#if RUBY3_HAS_DECLSPEC_ATTRIBUTE(noinline)
# define RUBY3_ATTR_NOINLINE() __declspec(noinline)
-
#elif RUBY3_HAS_ATTRIBUTE(noinline)
# define RUBY3_ATTR_NOINLINE() __attribute__((__noinline__))
-
#else
# define RUBY3_ATTR_NOINLINE() /* void */
#endif
+
+#endif /* RUBY3_ATTR_NOINLINE_H */