Skip to content

mrb_define_class_method

cremno edited this page Sep 11, 2013 · 2 revisions

mrb_define_class_method

Declaration Definition
mruby.h class.c
void mrb_define_class_method(mrb_state *mrb, struct RClass *klass, const char *name, mrb_func_t func, mrb_aspec aspec)

Defines a new class method.

Parameters

  • mrb: mruby VM state
  • klass: class of the new class method
  • name: name of the class method
  • func: function pointer
  • aspec: argument spec

Return value

None.

See also

Clone this wiki locally