Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
Macros
gcc_version_since.h File Reference

Defines old GCC_VERSION_SINCE. More...

#include "ruby/internal/compiler_since.h"

Go to the source code of this file.

Macros

#define GCC_VERSION_SINCE(x, y, z)   RBIMPL_COMPILER_SINCE(GCC, (x), (y), (z))
 
#define GCC_VERSION_BEFORE(x, y, z)
 

Detailed Description

Defines old GCC_VERSION_SINCE.

Author
Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org
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 gcc_version_since.h.

Macro Definition Documentation

◆ GCC_VERSION_BEFORE

#define GCC_VERSION_BEFORE (   x,
  y,
 
)
Value:
(RBIMPL_COMPILER_BEFORE(GCC, (x), (y), (z)) || \
(RBIMPL_COMPILER_IS(GCC) && \
#define RBIMPL_COMPILER_VERSION_MINOR
Definition: clang.h:34
#define RBIMPL_COMPILER_VERSION_PATCH
Definition: clang.h:35
#define RBIMPL_COMPILER_VERSION_MAJOR
Definition: clang.h:33
#define RBIMPL_COMPILER_IS(cc)
Checks if the compiler is of given brand.
Definition: compiler_is.h:30
#define RBIMPL_COMPILER_BEFORE(cc, x, y, z)
Checks if the compiler is of given brand and is older than the passed version.

Definition at line 30 of file gcc_version_since.h.

◆ GCC_VERSION_SINCE

#define GCC_VERSION_SINCE (   x,
  y,
 
)    RBIMPL_COMPILER_SINCE(GCC, (x), (y), (z))

Definition at line 26 of file gcc_version_since.h.