Remove RB_GC_GUARD(x) macro. See also mruby/mruby#948.

This commit is contained in:
Masaki Muranaka
2013-03-05 13:00:17 +09:00
parent 5a153851c3
commit 95c34a90ca
2 changed files with 1 additions and 6 deletions
-4
View File
@@ -11,10 +11,6 @@
extern "C" {
#endif
#ifndef RB_GC_GUARD
#define RB_GC_GUARD(v) v
#endif
#define IS_EVSTR(p,e) ((p) < (e) && (*(p) == '$' || *(p) == '@' || *(p) == '{'))
#define STR_BUF_MIN_SIZE 128
+1 -2
View File
@@ -1511,9 +1511,8 @@ mrb_value
mrb_str_intern(mrb_state *mrb, mrb_value self)
{
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);
}