diff options
author | Mark Spruiell <mes@zeroc.com> | 2016-03-16 11:37:46 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2016-03-16 11:37:46 -0700 |
commit | 473bf30951e4b711ed6829e765f2d330ce8d80db (patch) | |
tree | 003c19faeee7dfe1dd0b3dcebaa6e1ef3fd17f47 /ruby/src/IceRuby/Config.h | |
parent | ICE-7020 - php Ice/defaultValue failing (diff) | |
download | ice-473bf30951e4b711ed6829e765f2d330ce8d80db.tar.bz2 ice-473bf30951e4b711ed6829e765f2d330ce8d80db.tar.xz ice-473bf30951e4b711ed6829e765f2d330ce8d80db.zip |
ICE-7023 - Ruby 2.3 compatibility
Diffstat (limited to 'ruby/src/IceRuby/Config.h')
-rw-r--r-- | ruby/src/IceRuby/Config.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ruby/src/IceRuby/Config.h b/ruby/src/IceRuby/Config.h index daf7e65423a..f8117b4d554 100644 --- a/ruby/src/IceRuby/Config.h +++ b/ruby/src/IceRuby/Config.h @@ -87,4 +87,15 @@ typedef VALUE(*ICE_RUBY_ENTRY_POINT)(...); # define RFLOAT_VALUE(v) RFLOAT(v)->value #endif +// +// The RARRAY_AREF and RARRAY_ASET macros were added in Ruby 2.1. +// +#ifndef RARRAY_AREF +# define RARRAY_AREF(a, i) (RARRAY_PTR(a)[i]) +#endif + +#ifndef RARRAY_ASET +# define RARRAY_ASET(a, i, v) RARRAY_PTR(a)[i] = v +#endif + #endif |