Ruby: include/ruby/internal/constant_p.h Source File

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

constant_p.h
Go to the documentation of this file.
1#ifndef RBIMPL_CONSTANT_P_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_CONSTANT_P_H
29#include "ruby/internal/has/builtin.h"
30
31#if RBIMPL_HAS_BUILTIN(__builtin_constant_p)
32# define RBIMPL_CONSTANT_P(expr) __builtin_constant_p(expr)
33#else
34# define RBIMPL_CONSTANT_P(expr) 0
35#endif
36
37#endif /* RBIMPL_CONSTANT_P_H */
builtin.h
Defines RBIMPL_HAS_BUILTIN.