Skip to content

mrb_define_class_id

cremno edited this page Sep 11, 2013 · 2 revisions

mrb_define_class_id

Declaration Definition
class.h class.c
struct RClass *mrb_define_class_id(mrb_state *mrb, mrb_sym name, struct RClass *super);

Defines a new class.

Parameters

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

Return value

The new class.

See also

Clone this wiki locally