Use functions that take symbols to reduce string litrals in C.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-06-01 10:36:28 +09:00
parent 8864c30d16
commit 2a366ffba8
14 changed files with 67 additions and 67 deletions
+1 -1
View File
@@ -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