mrb_define_method_id - cremno/mruby GitHub Wiki
mrb_define_method_id
| Declaration | Definition |
|---|---|
| class.h | class.c |
void mrb_define_method_id(mrb_state *mrb, struct RClass *klass, mrb_sym name, mrb_func_t func, mrb_aspec aspec);
Defines a method.
Parameters
- mrb: mruby VM state
- klass: class of the method
- name: name of the method
- func: function pointer
- aspec: argument spec
Return value
None.