summaryrefslogtreecommitdiff
path: root/template/opt_sc.inc.tmpl
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-22 03:07:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-22 03:07:01 +0000
commit1f89414c20edbe0b36fac7351917f401ccee63a1 (patch)
treeac09286c71c8630484367b47934a99a0631fac50 /template/opt_sc.inc.tmpl
parent066e9a8b4ac36907f8e7915b5f94fdc7ca851de0 (diff)
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.tmpl3
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);