mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-math: use mrb_define_module_id instead of mrb_define_module
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -697,7 +697,7 @@ math_erfc(mrb_state *mrb, mrb_value obj)
|
||||
void
|
||||
mrb_mruby_math_gem_init(mrb_state* mrb)
|
||||
{
|
||||
struct RClass *math = mrb_define_module(mrb, "Math");
|
||||
struct RClass *math = mrb_define_module_id(mrb, MRB_SYM(Math));
|
||||
|
||||
mrb_define_class_under_id(mrb, math, MRB_SYM(DomainError), E_STANDARD_ERROR);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user