Ruby 3.5.0dev (2025-05-07 revision d6d63b278ac1eb839518de709504bf3db3dc32d9)
nonstring.h
Go to the documentation of this file.
1#ifndef RBIMPL_ATTR_NONSTRING_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_ATTR_NONSTRING_H
24
26#if RBIMPL_HAS_ATTRIBUTE(nonstring)
27# define RBIMPL_ATTR_NONSTRING() __attribute__((nonstring))
28# if RBIMPL_COMPILER_SINCE(GCC, 15, 0, 0)
29# define RBIMPL_ATTR_NONSTRING_ARRAY() RBIMPL_ATTR_NONSTRING()
30# else
31# define RBIMPL_ATTR_NONSTRING_ARRAY() /* void */
32# endif
33#else
34# define RBIMPL_ATTR_NONSTRING() /* void */
35# define RBIMPL_ATTR_NONSTRING_ARRAY() /* void */
36#endif
37
38#endif /* RBIMPL_ATTR_NONSTRING_H */
Defines RBIMPL_HAS_ATTRIBUTE.