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

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

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