Skip to content

mrb_define_alias

cremno edited this page Sep 11, 2013 · 2 revisions

mrb_define_alias

Declaration Definition
mruby.h class.c
void mrb_define_alias(mrb_state *mrb, struct RClass *klass, const char *new_name, const char *old_name);

Defines a method called new_name which is a copy of old_name.

Parameters

  • mrb: mruby VM state
  • klass: class of the method
  • new_name: name of the new method
  • old_name: name of the original method

Return value

None.

See also

Clone this wiki locally