Skip to content

Commit

Permalink
Generate array initialization designators that don't confuse MSVC
Browse files Browse the repository at this point in the history
In C++ mode, MSVC can confuse them for lambda syntax.
  • Loading branch information
Leont committed May 8, 2023
1 parent 48e8a9d commit 6b4b97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regen/opcode.pl
Expand Up @@ -1028,7 +1028,7 @@ sub op_index {
$max;
};

align $align_at, "[${\ op_enum $_[0] }]";
align $align_at, "[+${\ op_enum $_[0] }]";
}

sub generate_opcode_h {
Expand Down

0 comments on commit 6b4b97f

Please sign in to comment.