Ruby: version.h File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Macros
version.h File Reference
`#include "ruby/version.h"`

Go to the source code of this file.

## Macros
#define | RUBY_VERSION_MAJOR RUBY_API_VERSION_MAJOR
#define | RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
#define | RUBY_VERSION_TEENY 5
#define | RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
#define | RUBY_PATCHLEVEL 211
#define | RUBY_RELEASE_YEAR 2022
#define | RUBY_RELEASE_MONTH 11
#define | RUBY_RELEASE_DAY 24
#define | TOKEN_PASTE(x, y) x##y
#define | ONLY_ONE_DIGIT(x) TOKEN_PASTE(10,x) < 1000
#define | WITH_ZERO_PADDING(x) TOKEN_PASTE(0,x)
#define | RUBY_BIRTH_YEAR_STR STRINGIZE(RUBY_BIRTH_YEAR)
#define | RUBY_RELEASE_YEAR_STR STRINGIZE(RUBY_RELEASE_YEAR)
#define | RUBY_RELEASE_MONTH_STR STRINGIZE(RUBY_RELEASE_MONTH)
#define | RUBY_RELEASE_DAY_STR STRINGIZE(RUBY_RELEASE_DAY)
#define | RUBY_PATCHLEVEL_STR "p"STRINGIZE(RUBY_PATCHLEVEL)
#define | RUBY_REVISION_STR " revision "RUBY_REVISION
#define | RUBY_RELEASE_DATETIME RUBY_RELEASE_DATE
#define | RUBY_DESCRIPTION_WITH(opt)
#define | RUBY_COPYRIGHT

## Detailed Description

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.

Definition in file version.h.

## Macro Definition Documentation

## ◆ ONLY_ONE_DIGIT

#define ONLY_ONE_DIGIT | ( |  | x | ) | TOKEN_PASTE(10,x) < 1000

Definition at line 26 of file version.h.

## ◆ RUBY_BIRTH_YEAR_STR

#define RUBY_BIRTH_YEAR_STR STRINGIZE(RUBY_BIRTH_YEAR)

Definition at line 28 of file version.h.

## ◆ RUBY_COPYRIGHT

#define RUBY_COPYRIGHT

Value:
"ruby - Copyright (C) " \
RUBY_BIRTH_YEAR_STR"-" \
RUBY_RELEASE_YEAR_STR" " \
RUBY_AUTHOR
RUBY_AUTHOR
#define RUBY_AUTHOR
Definition: version.h:24
RUBY_BIRTH_YEAR_STR
#define RUBY_BIRTH_YEAR_STR
Definition: version.h:28
RUBY_RELEASE_YEAR_STR
#define RUBY_RELEASE_YEAR_STR
Definition: version.h:29

Definition at line 83 of file version.h.

## ◆ RUBY_DESCRIPTION_WITH

#define RUBY_DESCRIPTION_WITH | ( |  | opt | ) |

Value:
"ruby "RUBY_VERSION \
RUBY_PATCHLEVEL_STR \
" ("RUBY_RELEASE_DATETIME \
RUBY_REVISION_STR")"opt" " \
"["RUBY_PLATFORM"]"
RUBY_PLATFORM
#define RUBY_PLATFORM
Definition: config.h:98

Definition at line 77 of file version.h.

## ◆ RUBY_PATCHLEVEL

#define RUBY_PATCHLEVEL 211

Definition at line 15 of file version.h.

## ◆ RUBY_PATCHLEVEL_STR

#define RUBY_PATCHLEVEL_STR "p"STRINGIZE(RUBY_PATCHLEVEL)

Definition at line 52 of file version.h.

## ◆ RUBY_RELEASE_DATE

#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR

Definition at line 14 of file version.h.

## ◆ RUBY_RELEASE_DATETIME

#define RUBY_RELEASE_DATETIME RUBY_RELEASE_DATE

Definition at line 74 of file version.h.

## ◆ RUBY_RELEASE_DAY

#define RUBY_RELEASE_DAY 24

Definition at line 19 of file version.h.

## ◆ RUBY_RELEASE_DAY_STR

#define RUBY_RELEASE_DAY_STR STRINGIZE(RUBY_RELEASE_DAY)

Definition at line 38 of file version.h.

## ◆ RUBY_RELEASE_MONTH

#define RUBY_RELEASE_MONTH 11

Definition at line 18 of file version.h.

## ◆ RUBY_RELEASE_MONTH_STR

#define RUBY_RELEASE_MONTH_STR STRINGIZE(RUBY_RELEASE_MONTH)

Definition at line 33 of file version.h.

## ◆ RUBY_RELEASE_YEAR

#define RUBY_RELEASE_YEAR 2022

Definition at line 17 of file version.h.

## ◆ RUBY_RELEASE_YEAR_STR

#define RUBY_RELEASE_YEAR_STR STRINGIZE(RUBY_RELEASE_YEAR)

Definition at line 29 of file version.h.

## ◆ RUBY_REVISION_STR

#define RUBY_REVISION_STR " revision "RUBY_REVISION

Definition at line 66 of file version.h.

## ◆ RUBY_VERSION_MAJOR

#define RUBY_VERSION_MAJOR RUBY_API_VERSION_MAJOR

Definition at line 11 of file version.h.

## ◆ RUBY_VERSION_MINOR

#define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR

Definition at line 12 of file version.h.

## ◆ RUBY_VERSION_TEENY

#define RUBY_VERSION_TEENY 5

Definition at line 13 of file version.h.

## ◆ TOKEN_PASTE

#define TOKEN_PASTE | ( |  | x,
|  |  | y
| ) |  | x##y

Definition at line 24 of file version.h.

## ◆ WITH_ZERO_PADDING

#define WITH_ZERO_PADDING | ( |  | x | ) | TOKEN_PASTE(0,x)

Definition at line 27 of file version.h.