diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-11-27 09:47:35 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-11-27 09:47:35 +0900 |
| commit | 190649e591de2bc0b935a22066fc9e79e8ae8f9b (patch) | |
| tree | 76a2dc202c74838f3820c1ba902f40ce567cc42f /src | |
| parent | ec957ec5eee6c0a2874948c1b063e89d9fbd4eab (diff) | |
| parent | 6cf99d12ac17e50b91e6aeb0dd79c611e579fd1b (diff) | |
| download | mruby-190649e591de2bc0b935a22066fc9e79e8ae8f9b.tar.gz mruby-190649e591de2bc0b935a22066fc9e79e8ae8f9b.zip | |
Merge pull request #4837 from shuujii/add-assertion-to-RVALUE-size
Add assertion to `RVALUE` size
Diffstat (limited to 'src')
| -rw-r--r-- | src/gc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1609,6 +1609,9 @@ mrb_init_gc(mrb_state *mrb) { struct RClass *gc; + mrb_static_assert(sizeof(RVALUE) <= sizeof(void*) * 6, + "RVALUE size must be within 6 words"); + gc = mrb_define_module(mrb, "GC"); mrb_define_class_method(mrb, gc, "start", gc_start, MRB_ARGS_NONE()); |
