From 1f89414c20edbe0b36fac7351917f401ccee63a1 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 22 Aug 2017 03:07:01 +0000 Subject: 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 --- template/opt_sc.inc.tmpl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'template/opt_sc.inc.tmpl') 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); -- cgit v1.2.3