Skip to content

mrb_define_class

cremno edited this page Sep 11, 2013 · 2 revisions

mrb_define_class

Declaration Definition
mruby.h class.c
struct RClass *mrb_define_class(mrb_state *mrb, const char *name, struct RClass *super);

Defines a class.

Parameters

  • mrb: mruby VM state
  • name: name of the new class
  • super: superclass of the new class

Return value

The class.

See also

Clone this wiki locally