@@ -140,7 +140,7 @@ void rb_insecure_operation(void) {
140
140
}
141
141
142
142
int rb_safe_level (void ) {
143
- return polyglot_as_i32 (polyglot_invoke ( RUBY_CEXT , "rb_safe_level" ));
143
+ return polyglot_as_i32 (RUBY_CEXT_INVOKE_NO_WRAP ( "rb_safe_level" ));
144
144
}
145
145
146
146
void rb_set_safe_level_force (int level ) {
@@ -392,7 +392,7 @@ const char *rb_sourcefile(void) {
392
392
}
393
393
394
394
int rb_sourceline (void ) {
395
- return polyglot_as_i32 (polyglot_invoke ( RUBY_CEXT , "rb_sourceline" ));
395
+ return polyglot_as_i32 (RUBY_CEXT_INVOKE_NO_WRAP ( "rb_sourceline" ));
396
396
}
397
397
398
398
int rb_method_boundp (VALUE klass , ID id , int ex ) {
@@ -987,7 +987,7 @@ rb_encoding *rb_locale_encoding(void) {
987
987
}
988
988
989
989
int rb_locale_encindex (void ) {
990
- return polyglot_as_i32 (polyglot_invoke ( RUBY_CEXT , "rb_locale_encindex" ));
990
+ return polyglot_as_i32 (RUBY_CEXT_INVOKE_NO_WRAP ( "rb_locale_encindex" ));
991
991
}
992
992
993
993
rb_encoding * rb_filesystem_encoding (void ) {
@@ -999,7 +999,7 @@ rb_encoding *rb_filesystem_encoding(void) {
999
999
}
1000
1000
1001
1001
int rb_filesystem_encindex (void ) {
1002
- return polyglot_as_i32 (polyglot_invoke ( RUBY_CEXT , "rb_filesystem_encindex" ));
1002
+ return polyglot_as_i32 (RUBY_CEXT_INVOKE_NO_WRAP ( "rb_filesystem_encindex" ));
1003
1003
}
1004
1004
1005
1005
rb_encoding * get_encoding (VALUE string ) {
@@ -1069,7 +1069,7 @@ rb_encoding *rb_ascii8bit_encoding(void) {
1069
1069
}
1070
1070
1071
1071
int rb_ascii8bit_encindex (void ) {
1072
- return polyglot_as_i32 (polyglot_invoke ( RUBY_CEXT , "rb_ascii8bit_encindex" ));
1072
+ return polyglot_as_i32 (RUBY_CEXT_INVOKE_NO_WRAP ( "rb_ascii8bit_encindex" ));
1073
1073
}
1074
1074
1075
1075
rb_encoding * rb_usascii_encoding (void ) {
@@ -1088,15 +1088,15 @@ void rb_must_asciicompat(VALUE str) {
1088
1088
}
1089
1089
1090
1090
int rb_usascii_encindex (void ) {
1091
- return polyglot_as_i32 (polyglot_invoke ( RUBY_CEXT , "rb_usascii_encindex" ));
1091
+ return polyglot_as_i32 (RUBY_CEXT_INVOKE_NO_WRAP ( "rb_usascii_encindex" ));
1092
1092
}
1093
1093
1094
1094
rb_encoding * rb_utf8_encoding (void ) {
1095
1095
return rb_to_encoding (RUBY_CEXT_INVOKE ("utf8_encoding" ));
1096
1096
}
1097
1097
1098
1098
int rb_utf8_encindex (void ) {
1099
- return polyglot_as_i32 (polyglot_invoke ( RUBY_CEXT , "rb_utf8_encindex" ));
1099
+ return polyglot_as_i32 (RUBY_CEXT_INVOKE_NO_WRAP ( "rb_utf8_encindex" ));
1100
1100
}
1101
1101
1102
1102
enum ruby_coderange_type RB_ENC_CODERANGE (VALUE obj ) {
0 commit comments