Defines RBIMPL_COMPILER_SINCE.
More...
Go to the source code of this file.
|
#define | RBIMPL_COMPILER_SINCE(cc, x, y, z) |
| Checks if the compiler is of given brand and is newer than or equal to the passed version.
|
#define | RBIMPL_COMPILER_BEFORE(cc, x, y, z) |
| Checks if the compiler is of given brand and is older than the passed version.
|
Defines RBIMPL_COMPILER_SINCE.
- Author
- Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org
- Copyright
- This file is a part of the programming language Ruby. Permission is hereby granted, to either redistribute and/or modify this file, provided that the conditions mentioned in the file COPYING are met. Consult the file for details.
- Warning
- Symbols prefixed with either RBIMPL or rbimpl are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will.
- Note
- To ruby-core: remember that this header can be possibly recursively included from extension libraries written in C++. Do not expect for instance __VA_ARGS__ is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98.
Definition in file compiler_since.h.
◆ RBIMPL_COMPILER_BEFORE
#define RBIMPL_COMPILER_BEFORE |
( |
| cc, |
|
|
| x, |
|
|
| y, |
|
|
| z ) |
Value:
((RBIMPL_COMPILER_VERSION_MAJOR < (x)) || \
((RBIMPL_COMPILER_VERSION_MAJOR == (x)) && \
((RBIMPL_COMPILER_VERSION_MINOR < (y)) || \
((RBIMPL_COMPILER_VERSION_MINOR == (y)) && \
(RBIMPL_COMPILER_VERSION_PATCH < (z)))))))
#define RBIMPL_COMPILER_IS(cc)
Checks if the compiler is of given brand.
Checks if the compiler is of given brand and is older than the passed version.
- Parameters
-
cc | Compiler brand, like MSVC. |
x | Major version. |
y | Minor version. |
z | Patchlevel. |
- Return values
-
true | cc < x.y.z. |
false | otherwise. |
Definition at line 53 of file compiler_since.h.
◆ RBIMPL_COMPILER_SINCE
#define RBIMPL_COMPILER_SINCE |
( |
| cc, |
|
|
| x, |
|
|
| y, |
|
|
| z ) |
Value:
((RBIMPL_COMPILER_VERSION_MAJOR > (x)) || \
((RBIMPL_COMPILER_VERSION_MAJOR == (x)) && \
((RBIMPL_COMPILER_VERSION_MINOR > (y)) || \
((RBIMPL_COMPILER_VERSION_MINOR == (y)) && \
(RBIMPL_COMPILER_VERSION_PATCH >= (z)))))))
Checks if the compiler is of given brand and is newer than or equal to the passed version.
- Parameters
-
cc | Compiler brand, like MSVC. |
x | Major version. |
y | Minor version. |
z | Patchlevel. |
- Return values
-
true | cc >= x.y.z. |
false | otherwise. |
Definition at line 35 of file compiler_since.h.