mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add functions that take symbols as arguments.
- :
This commit is contained in:
@@ -872,6 +872,12 @@ mrb_const_remove(mrb_state *mrb, mrb_value mod, mrb_sym sym)
|
||||
mrb_iv_remove(mrb, mod, sym);
|
||||
}
|
||||
|
||||
MRB_API void
|
||||
mrb_define_const_id(mrb_state *mrb, struct RClass *mod, mrb_sym name, mrb_value v)
|
||||
{
|
||||
mrb_obj_iv_set(mrb, (struct RObject*)mod, name, v);
|
||||
}
|
||||
|
||||
MRB_API void
|
||||
mrb_define_const(mrb_state *mrb, struct RClass *mod, const char *name, mrb_value v)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user