Ruby: include/ruby/backward/2/gcc_version_since.h Source File

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

gcc_version_since.h
1#ifndef RUBY_BACKWARD2_GCC_VERSION_SINCE_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RUBY_BACKWARD2_GCC_VERSION_SINCE_H
22#include "ruby/internal/compiler_since.h"
23
24#ifndef GCC_VERSION_SINCE
25#define GCC_VERSION_SINCE(x, y, z) RBIMPL_COMPILER_SINCE(GCC, (x), (y), (z))
26#endif
27
28#ifndef GCC_VERSION_BEFORE
29#define GCC_VERSION_BEFORE(x, y, z) \
30 (RBIMPL_COMPILER_BEFORE(GCC, (x), (y), (z)) || \
31 (RBIMPL_COMPILER_IS(GCC) && \
32 ((RBIMPL_COMPILER_VERSION_MAJOR == (x)) && \
33 ((RBIMPL_COMPILER_VERSION_MINOR == (y)) && \
34 (RBIMPL_COMPILER_VERSION_PATCH == (z))))))
35#endif
36
37#endif /* RUBY_BACKWARD2_GCC_VERSION_SINCE_H */
compiler_since.h
Defines RBIMPL_COMPILER_SINCE.