Ruby
3.2.1p31 (2023-02-08 revision 31819e82c88c6f8ecfaeb162519bfa26a14b21fd)
include
ruby
internal
has
c_attribute.h
Go to the documentation of this file.
1
#ifndef RBIMPL_HAS_C_ATTRIBUTE_H
/*-*-C++-*-vi:se ft=cpp:*/
2
#define RBIMPL_HAS_C_ATTRIBUTE_H
25
#if defined(__cplusplus)
26
#
/* Makes no sense. */
27
# define RBIMPL_HAS_C_ATTRIBUTE(_) 0
28
29
#elif defined(__has_c_attribute)
30
# define RBIMPL_HAS_C_ATTRIBUTE(_) __has_c_attribute(_)
31
32
#else
33
#
/* As of writing everything that lacks __has_c_attribute also completely
34
# * lacks C2x attributes as well. Might change in future? */
35
# define RBIMPL_HAS_C_ATTRIBUTE(_) 0
36
#endif
37
38
#endif
/* RBIMPL_HAS_C_ATTRIBUTE_H */
Generated by
1.9.6