Ruby: include/ruby/internal/attr/noinline.h Source File

Ruby 3.4.9p82 (2026-03-11 revision 76cca827ab52ab1d346a728f068d5b8da3e2952b)

noinline.h
Go to the documentation of this file.
1#ifndef RBIMPL_ATTR_NOINLINE_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_ATTR_NOINLINE_H
23#include "ruby/internal/has/attribute.h"
24#include "ruby/internal/has/declspec_attribute.h"
25
27#if RBIMPL_HAS_DECLSPEC_ATTRIBUTE(noinline)
28# define RBIMPL_ATTR_NOINLINE() __declspec(noinline)
29#elif RBIMPL_HAS_ATTRIBUTE(noinline)
30# define RBIMPL_ATTR_NOINLINE() __attribute__((__noinline__))
31#else
32# define RBIMPL_ATTR_NOINLINE() /* void */
33#endif
34
35#endif /* RBIMPL_ATTR_NOINLINE_H */
attribute.h
Defines RBIMPL_HAS_ATTRIBUTE.
declspec_attribute.h
Defines RBIMPL_HAS_DECLSPEC_ATTRIBUTE.