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

Ruby 3.4.4p34 (2025-05-14 revision a38531fd3f617bf734ef7d6c595325f69985ea1d)

forceinline.h
Go to the documentation of this file.
1#ifndef RBIMPL_ATTR_FORCEINLINE_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_ATTR_FORCEINLINE_H
23#include "ruby/internal/compiler_since.h"
24#include "ruby/internal/has/attribute.h"
25
32#if RBIMPL_COMPILER_SINCE(MSVC, 12, 0, 0)
33# define RBIMPL_ATTR_FORCEINLINE() __forceinline
34#elif RBIMPL_HAS_ATTRIBUTE(always_inline)
35# define RBIMPL_ATTR_FORCEINLINE() __attribute__((__always_inline__)) inline
36#else
37# define RBIMPL_ATTR_FORCEINLINE() inline
38#endif
39
40#endif /* RBIMPL_ATTR_FORCEINLINE_H */
attribute.h
Defines RBIMPL_HAS_ATTRIBUTE.
compiler_since.h
Defines RBIMPL_COMPILER_SINCE.