Skip to content

Commit

Permalink
Alias rb_funcallv to rb_funcall2
Browse files Browse the repository at this point in the history
MRI remaed rb_funcall2 to rb_funcallv but we'll just add rb_funcallv as
an alias so we don't have to find/replace a whole bunch of occurrences
of rb_funcall2.
  • Loading branch information
Yorick Peterse committed May 8, 2015
1 parent 28834a4 commit 8d6cfbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vm/include/capi/ruby/ruby.h
Expand Up @@ -1401,6 +1401,8 @@ struct RTypedData {
VALUE rb_funcall2(VALUE receiver, ID method_name,
int arg_count, const VALUE* args);

#define rb_funcallv rb_funcall2

/** Call the method with args provided in a C array and block.
* Calls private methods. */
VALUE rb_funcall2b(VALUE receiver, ID method_name, int arg_count,
Expand Down

0 comments on commit 8d6cfbe

Please sign in to comment.