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

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

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.