1
0
Fork 0
mirror of https://github.com/rubyjs/mini_racer synced 2023-03-27 23:21:28 -04:00

remove RUBY_METHOD_FUNC use

This was causing deprecation warnings from ANYARGS usage
and no longer necessary since Ruby 1.8+, at least.  It's
not used by any of the core *.c nor ext/ extensions in
the C ruby source tree, and I've rarely seen it used in
3rd-party C extensions.
This commit is contained in:
Sam Saffron 2021-12-03 15:54:23 +11:00
parent e9b2adae10
commit 7a16ef8120
No known key found for this signature in database
GPG key ID: B9606168D2FFD9F5

View file

@ -1251,8 +1251,8 @@ gvl_ruby_callback(void* data) {
VALUE callback_data_value = (VALUE)&callback_data;
// TODO: use rb_vrescue2 in Ruby 2.7 and above
result = rb_rescue2(RUBY_METHOD_FUNC(protected_callback), callback_data_value,
RUBY_METHOD_FUNC(rescue_callback), callback_data_value, rb_eException, (VALUE)0);
result = rb_rescue2(protected_callback, callback_data_value,
rescue_callback, callback_data_value, rb_eException, (VALUE)0);
if(callback_data.failed) {
rb_iv_set(parent, "@current_exception", result);