mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use functions that take symbols to reduce string litrals in C.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
static struct RClass *
|
||||
struct_class(mrb_state *mrb)
|
||||
{
|
||||
return mrb_class_get(mrb, "Struct");
|
||||
return mrb_class_get_id(mrb, MRB_SYM(Struct));
|
||||
}
|
||||
|
||||
static inline mrb_value
|
||||
|
||||
Reference in New Issue
Block a user