Skip to content

mrb_define_const

cremno edited this page Sep 11, 2013 · 2 revisions

mrb_define_const

Declaration Definition
mruby.h variable.c
void mrb_define_const(mrb_state *mrb, struct RClass *klass, const char *name, mrb_value obj);

Defines a constant under klass.

Parameters

  • mrb: mruby VM state
  • klass: outer class
  • name: name of the constant
  • obj: value of the constant

Return value

None.

See also

Clone this wiki locally