summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/default.gembox
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 /mrbgems/default.gembox
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 'mrbgems/default.gembox')
-rw-r--r--mrbgems/default.gembox3
1 files changed, 3 insertions, 0 deletions
diff --git a/mrbgems/default.gembox b/mrbgems/default.gembox
index dab7230aa..e3bd114f3 100644
--- a/mrbgems/default.gembox
+++ b/mrbgems/default.gembox
@@ -74,6 +74,9 @@ MRuby::GemBox.new do |conf|
# Use class/module extension
conf.gem :core => "mruby-class-ext"
+ # Use inline struct
+ conf.gem :core => "mruby-inline-struct"
+
# Use mruby-compiler to build other mrbgems
conf.gem :core => "mruby-compiler"
end