Skip to content

mrb_define_class_under

cremno edited this page Sep 11, 2013 · 2 revisions

mrb_define_class_under

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

Defines a class under an existant one.

Parameters

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

Return value

The new class.

See also

Clone this wiki locally