Make intern_gen() inline. This is enough tiny to be inlined.

This commit is contained in:
Masaki Muranaka
2013-03-22 14:23:41 +09:00
parent f8fa56d8c3
commit 75d5654de8
+1 -1
View File
@@ -61,7 +61,7 @@ typedef unsigned int stack_type;
#define sym(x) ((mrb_sym)(intptr_t)(x))
#define nsym(x) ((node*)(intptr_t)(x))
static mrb_sym
static inline mrb_sym
intern_gen(parser_state *p, const char *s)
{
return mrb_intern(p->mrb, s);