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

Ruby 4.0.6p0 (2026-07-14 revision 03b6d3f8898a28604fe6cb00eae3226b821168f4)

flag_enum.h
Go to the documentation of this file.
1#ifndef RBIMPL_ATTR_FLAG_ENUM_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_ATTR_FLAG_ENUM_H
24#include "ruby/internal/has/attribute.h"
25
27#if RBIMPL_HAS_ATTRIBUTE(flag_enum)
28# define RBIMPL_ATTR_FLAG_ENUM() __attribute__((__flag_enum__))
29#else
30# define RBIMPL_ATTR_FLAG_ENUM() /* void */
31#endif
32
33#endif /* RBIMPLATTR_FLAG_ENUM_H */
attribute.h
Defines RBIMPL_HAS_ATTRIBUTE.