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

Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)

artificial.h
Go to the documentation of this file.
1#ifndef RBIMPL_ATTR_ARTIFICIAL_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_ATTR_ARTIFICIAL_H
37#include "ruby/internal/has/attribute.h"
38
40#if RBIMPL_HAS_ATTRIBUTE(artificial)
41# define RBIMPL_ATTR_ARTIFICIAL() __attribute__((__artificial__))
42#else
43# define RBIMPL_ATTR_ARTIFICIAL() /* void */
44#endif
45
46#endif /* RBIMPL_ATTR_ARTIFICIAL_H */
attribute.h
Defines RBIMPL_HAS_ATTRIBUTE.