Skip to content

Commit 578e7d4

Browse files
[GR-17457] Fix Symbol/ID usage in rb_define_module_function.
PullRequest: truffleruby/1803
2 parents b8bc6c4 + 7b64aa1 commit 578e7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/c/cext/define.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void rb_define_protected_method(VALUE module, const char *name, VALUE (*function
5050

5151
void rb_define_module_function(VALUE module, const char *name, VALUE (*function)(ANYARGS), int argc) {
5252
rb_define_method(module, name, function, argc);
53-
RUBY_CEXT_INVOKE_NO_WRAP("cext_module_function", module, rb_intern(name));
53+
polyglot_invoke(RUBY_CEXT, "cext_module_function", rb_tr_unwrap(module), rb_tr_id2sym(rb_intern(name)));
5454
}
5555

5656
void rb_define_global_function(const char *name, VALUE (*function)(ANYARGS), int argc) {

0 commit comments

Comments
 (0)