File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -731,7 +731,7 @@ VALUE rb_str_buf_append(VALUE, VALUE);
731
731
VALUE rb_str_buf_cat (VALUE , const char * , long );
732
732
VALUE rb_str_buf_cat2 (VALUE , const char * );
733
733
VALUE rb_str_buf_cat_ascii (VALUE , const char * );
734
- #define rb_obj_as_string (object ) rb_any_to_s( object)
734
+ VALUE rb_obj_as_string (VALUE object );
735
735
VALUE rb_check_string_type (VALUE );
736
736
void rb_must_asciicompat (VALUE );
737
737
#define rb_str_dup (string ) rb_obj_dup(string)
Original file line number Diff line number Diff line change @@ -1662,6 +1662,10 @@ def rb_any_to_s(object)
1662
1662
Truffle ::Type . rb_any_to_s ( object )
1663
1663
end
1664
1664
1665
+ def rb_obj_as_string ( object )
1666
+ Truffle ::Type . rb_obj_as_string ( object )
1667
+ end
1668
+
1665
1669
def rb_class_inherited_p ( ruby_module , object )
1666
1670
if object . is_a? ( Module )
1667
1671
ruby_module <= object
Original file line number Diff line number Diff line change @@ -438,6 +438,10 @@ VALUE rb_obj_dup(VALUE object) {
438
438
return RUBY_INVOKE (object , "dup" );
439
439
}
440
440
441
+ VALUE rb_obj_as_string (VALUE object ) {
442
+ return RUBY_CEXT_INVOKE ("rb_obj_as_string" , object );
443
+ }
444
+
441
445
VALUE rb_any_to_s (VALUE object ) {
442
446
return RUBY_CEXT_INVOKE ("rb_any_to_s" , object );
443
447
}
You can’t perform that action at this time.
0 commit comments