summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-03-26 21:25:00 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-03-26 21:25:00 +0900
commitb1bd62e047d99387ca9681e5d907713b4c94bb3e (patch)
treeae0a37f88c128c8ba408692910e22984117b02b5 /include/mruby.h
parent5c6be2e518db9500c10db3ed2614499444936904 (diff)
downloadmruby-b1bd62e047d99387ca9681e5d907713b4c94bb3e.tar.gz
mruby-b1bd62e047d99387ca9681e5d907713b4c94bb3e.zip
remove all MRB_TT_MAIN from source
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 1c26be1ea..45bd99bdb 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -74,7 +74,6 @@ typedef struct mrb_state {
mrb_value *stack;
mrb_value *stbase, *stend;
- mrb_value *top_self;
mrb_callinfo *ci;
mrb_callinfo *cibase, *ciend;
@@ -91,6 +90,7 @@ typedef struct mrb_state {
size_t irep_len, irep_capa;
mrb_sym init_sym;
+ struct RObject *top_self;
struct RClass *object_class;
struct RClass *class_class;
struct RClass *module_class;
@@ -240,11 +240,11 @@ int mrb_gc_arena_save(mrb_state*);
void mrb_gc_arena_restore(mrb_state*,int);
void mrb_gc_mark(mrb_state*,struct RBasic*);
#define mrb_gc_mark_value(mrb,val) do {\
- if (mrb_type(val) >= MRB_TT_MAIN) mrb_gc_mark((mrb), mrb_basic_ptr(val));\
+ if (mrb_type(val) >= MRB_TT_OBJECT) mrb_gc_mark((mrb), mrb_basic_ptr(val));\
} while (0)
void mrb_field_write_barrier(mrb_state *, struct RBasic*, struct RBasic*);
#define mrb_field_write_barrier_value(mrb, obj, val) do{\
- if ((val.tt >= MRB_TT_MAIN)) mrb_field_write_barrier((mrb), (obj), mrb_basic_ptr(val));\
+ if ((val.tt >= MRB_TT_OBJECT)) mrb_field_write_barrier((mrb), (obj), mrb_basic_ptr(val));\
} while (0)
void mrb_write_barrier(mrb_state *, struct RBasic*);