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

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

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 gcc_version_since.h.

## Macro Definition Documentation

## ◆ GCC_VERSION_BEFORE

#define GCC_VERSION_BEFORE | ( |  | x,
|  |  | y,
|  |  | z
| ) |  |

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

Definition at line 30 of file gcc_version_since.h.

## ◆ GCC_VERSION_SINCE

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

Definition at line 26 of file gcc_version_since.h.