diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-22 03:07:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-22 03:07:01 +0000 |
commit | 6dbfaa2ba036e983264f0dbea94f932974f94c4d (patch) | |
tree | ac09286c71c8630484367b47934a99a0631fac50 /template/opt_sc.inc.tmpl | |
parent | 811079a19df57072bb8e5de1576ddcd7f45bd98a (diff) | |
download | ruby-6dbfaa2ba036e983264f0dbea94f932974f94c4d.tar.gz |
insns.inc.tmpl: ensure info size
* template/insns.inc.tmpl (ASSERT_VM_INSTRUCTION_SIZE): static
assertion for VM instruction info tables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/opt_sc.inc.tmpl')
-rw-r--r-- | template/opt_sc.inc.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/template/opt_sc.inc.tmpl b/template/opt_sc.inc.tmpl index 41492b2bb6..4c85f96c0f 100644 --- a/template/opt_sc.inc.tmpl +++ b/template/opt_sc.inc.tmpl @@ -26,7 +26,10 @@ static const VALUE sc_insn_info[][SC_STATE_SIZE] = { <%= sc_insn_info %> }; +ASSERT_VM_INSTRUCTION_SIZE(sc_insn_info); + static const VALUE sc_insn_next[] = { <%= sc_insn_next %> }; +ASSERT_VM_INSTRUCTION_SIZE(sc_insn_next); |