forked from mruby/mruby
-
Notifications
You must be signed in to change notification settings - Fork 0
mrb_define_module_function
cremno edited this page Sep 11, 2013
·
2 revisions
| Declaration | Definition |
|---|---|
| mruby.h | class.c |
void mrb_define_module_function(mrb_state *mrb, struct RClass *klass, const char *name, mrb_func_t func, mrb_aspec aspec);Defines a module function (class method and instance method).
- mrb: mruby VM state
- klass: class of the module function
- name: name of the new module function
- func: function pointer
- aspec: argument spec
None.