Commit f962068d authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #950 from monaka/pr-remove-macro-RB_GC_GUARD

Remove RB_GC_GUARD(x) macro.
parents 4433bde8 95c34a90
...@@ -11,10 +11,6 @@ ...@@ -11,10 +11,6 @@
extern "C" { extern "C" {
#endif #endif
#ifndef RB_GC_GUARD
#define RB_GC_GUARD(v) v
#endif
#define IS_EVSTR(p,e) ((p) < (e) && (*(p) == '$' || *(p) == '@' || *(p) == '{')) #define IS_EVSTR(p,e) ((p) < (e) && (*(p) == '$' || *(p) == '@' || *(p) == '{'))
#define STR_BUF_MIN_SIZE 128 #define STR_BUF_MIN_SIZE 128
......
...@@ -1511,9 +1511,8 @@ mrb_value ...@@ -1511,9 +1511,8 @@ mrb_value
mrb_str_intern(mrb_state *mrb, mrb_value self) mrb_str_intern(mrb_state *mrb, mrb_value self)
{ {
mrb_sym id; mrb_sym id;
mrb_value str = RB_GC_GUARD(self);
id = mrb_intern_str(mrb, str); id = mrb_intern_str(mrb, self);
return mrb_symbol_value(id); return mrb_symbol_value(id);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment