mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use rb_struct_ptr
for RSTRUCT_PTR
macro
* include/ruby/ruby.h (RSTRUCT_PTR): at r55788, `rb_struct_const_ptr` had been hidden and `rb_struct_ptr` had been implemented for backward compatiblity. but the definition of `RSTRUCT_PTR` was not modified to use it, probably by mistake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e83c344645
commit
f6f158c65a
1 changed files with 1 additions and 1 deletions
|
@ -1181,7 +1181,7 @@ void *rb_check_typeddata(VALUE, const rb_data_type_t *);
|
|||
((sval) = (type*)rb_check_typeddata((obj), (data_type)))
|
||||
|
||||
#define RSTRUCT_LEN(st) rb_struct_size(st)
|
||||
#define RSTRUCT_PTR(st) rb_struct_const_ptr(st)
|
||||
#define RSTRUCT_PTR(st) rb_struct_ptr(st)
|
||||
#define RSTRUCT_SET(st, idx, v) rb_struct_aset(st, INT2NUM(idx), (v))
|
||||
#define RSTRUCT_GET(st, idx) rb_struct_aref(st, INT2NUM(idx))
|
||||
|
||||
|
|
Loading…
Reference in a new issue