Ruby  3.4.0dev (2024-11-22 revision 0989400a925cd201defdca9eb28eb87200b30785)
compiler_since.h
Go to the documentation of this file.
1 #ifndef RBIMPL_COMPILER_SINCE_H /*-*-C++-*-vi:se ft=cpp:*/
2 #define RBIMPL_COMPILER_SINCE_H
24 
35 #define RBIMPL_COMPILER_SINCE(cc, x, y, z) \
36  (RBIMPL_COMPILER_IS(cc) && \
37  ((RBIMPL_COMPILER_VERSION_MAJOR > (x)) || \
38  ((RBIMPL_COMPILER_VERSION_MAJOR == (x)) && \
39  ((RBIMPL_COMPILER_VERSION_MINOR > (y)) || \
40  ((RBIMPL_COMPILER_VERSION_MINOR == (y)) && \
41  (RBIMPL_COMPILER_VERSION_PATCH >= (z)))))))
42 
53 #define RBIMPL_COMPILER_BEFORE(cc, x, y, z) \
54  (RBIMPL_COMPILER_IS(cc) && \
55  ((RBIMPL_COMPILER_VERSION_MAJOR < (x)) || \
56  ((RBIMPL_COMPILER_VERSION_MAJOR == (x)) && \
57  ((RBIMPL_COMPILER_VERSION_MINOR < (y)) || \
58  ((RBIMPL_COMPILER_VERSION_MINOR == (y)) && \
59  (RBIMPL_COMPILER_VERSION_PATCH < (z)))))))
60 
61 #endif /* RBIMPL_COMPILER_SINCE_H */
Defines RBIMPL_COMPILER_IS.