[C exten] is there a C function for creating a instance of a given class by passing N arguments?

Hi, sure I miss something in the Ruby MRI C API, but I don't find a
function like:

  VALUE object = rb_new_instance(VALUE klass, int num_args, ...)

Does it exist? or should I use rb_funcall() ?

Thanks a lot.

···

--
Iñaki Baz Castillo
<ibc@aliax.net>

rb_class_new_instance()

···

On Jun 13, 2012, at 10:12, Iñaki Baz Castillo wrote:

Hi, sure I miss something in the Ruby MRI C API, but I don't find a
function like:

VALUE object = rb_new_instance(VALUE klass, int num_args, ...)

Does it exist? or should I use rb_funcall() ?

Great, thanks a lot.

···

2012/6/14 Eric Hodel <drbrain@segment7.net>:

On Jun 13, 2012, at 10:12, Iñaki Baz Castillo wrote:

Hi, sure I miss something in the Ruby MRI C API, but I don't find a
function like:

VALUE object = rb_new_instance(VALUE klass, int num_args, ...)

Does it exist? or should I use rb_funcall() ?

rb_class_new_instance()

--
Iñaki Baz Castillo
<ibc@aliax.net>