Ruby: include/ruby/internal/compiler_since.h Source File

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

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
23#include "ruby/internal/compiler_is.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 */
compiler_is.h
Defines RBIMPL_COMPILER_IS.