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

Ruby 3.3.7p123 (2025-01-15 revision be31f993d7fa0219d85f7b3c694d454da4ecc10b)

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.