Skip to content

Commit aafd106

Browse files
committed
Add an include guard for insns_info.inc
The JIT bindgens need this.
1 parent dd0e0eb commit aafd106

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tool/ruby_vm/views/insns_info.inc.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
this_file: 'contains instruction information for yarv instruction sequence.',
1212
edit: __FILE__,
1313
} %>
14+
#ifndef INSNS_INFO_INC
15+
#define INSNS_INFO_INC 1
1416
<%= render 'insn_type_chars' %>
1517
<%= render 'insn_name_info' %>
1618
<%= render 'insn_len_info' %>
@@ -20,3 +22,4 @@
2022
<%= render 'zjit_helpers' %>
2123
<%= render 'attributes' %>
2224
<%= render 'comptime_insn_stack_increase' %>
25+
#endif

0 commit comments

Comments
 (0)