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

Ruby 3.3.4p94 (2024-07-09 revision be1089c8ec5ba40e09b1553e36b3174bf4014d9d)

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.