diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-07-12 16:44:57 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-12 15:57:25 +0900 |
commit | cd1a0b3caaa5446e9258c192cf483b6dfe8d7819 (patch) | |
tree | 7dcc4a1f0a2ff245fd7e1f36b4d10994574491f3 /include/ruby/internal | |
parent | a201cfd0cdb9f613f687dc6fee1908ec54e63c72 (diff) | |
download | ruby-cd1a0b3caaa5446e9258c192cf483b6dfe8d7819.tar.gz |
Stop defining `RUBY_ABI_VERSION` if released versions
As commented in include/ruby/internal/abi.h, since teeny versions of
Ruby should guarantee ABI compatibility, `RUBY_ABI_VERSION` has no role
in released versions of Ruby.
Diffstat (limited to 'include/ruby/internal')
-rw-r--r-- | include/ruby/internal/abi.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/ruby/internal/abi.h b/include/ruby/internal/abi.h index e42a1777ff..fe1977a9a1 100644 --- a/include/ruby/internal/abi.h +++ b/include/ruby/internal/abi.h @@ -1,6 +1,8 @@ #ifndef RUBY_ABI_H #define RUBY_ABI_H +#ifdef RUBY_ABI_VERSION /* should match the definition in config.h */ + /* This number represents Ruby's ABI version. * * In development Ruby, it should be bumped every time an ABI incompatible @@ -19,7 +21,7 @@ * - Backwards compatible refactors. * - Editing comments. * - * In released versions of Ruby, this number should not be changed since teeny + * In released versions of Ruby, this number is not defined since teeny * versions of Ruby should guarantee ABI compatibility. */ #define RUBY_ABI_VERSION 2 @@ -49,3 +51,5 @@ ruby_abi_version(void) #endif #endif + +#endif |