summaryrefslogtreecommitdiffhomepage
path: root/src/etc.c
diff options
context:
space:
mode:
authorTomasz Dąbrowski <[email protected]>2016-11-16 17:43:55 +0100
committerYukihiro "Matz" Matsumoto <[email protected]>2016-11-17 17:19:49 +0900
commit4cca8bac6bbdab02eba11e6527f793f2e9a5e75d (patch)
tree6b08ca177e1ebeaa0be3d87a993b27fbe58f795e /src/etc.c
parent784e07f902790dd13d33460d7365a2f0aee85727 (diff)
downloadmruby-4cca8bac6bbdab02eba11e6527f793f2e9a5e75d.tar.gz
mruby-4cca8bac6bbdab02eba11e6527f793f2e9a5e75d.zip
inline structures data type for mruby (MRB_TT_INLINE) (fix #3237)
Inline structures have no instance variables, no finalizer, and offer as much space as possible in RBASIC object. This means 24 bytes on 64-bit platforms and 12 bytes on 32-bit platforms. mruby-inline-struct gem is only provided for testing.
Diffstat (limited to 'src/etc.c')
-rw-r--r--src/etc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/etc.c b/src/etc.c
index 183e2f070..c89549da6 100644
--- a/src/etc.c
+++ b/src/etc.c
@@ -139,6 +139,7 @@ mrb_obj_id(mrb_value obj)
case MRB_TT_EXCEPTION:
case MRB_TT_FILE:
case MRB_TT_DATA:
+ case MRB_TT_INLINE:
default:
return MakeID(mrb_ptr(obj));
}