Merge remote-tracking branch

'origin/GP-3541_emteere_FixPragmaCommaParse' into patch (Closes #5427)
This commit is contained in:
Ryan Kurtz 2023-06-12 17:24:40 -04:00
commit 7115d1187a
2 changed files with 4 additions and 1 deletions

View file

@ -1922,7 +1922,7 @@ void PragmaSpecifier() : {
{
LOOKAHEAD(3)
<POPEN> PragmaSpecifier() <PCLOSE> |
id=<PIDENTIFIER> (<PIDENTIFIER> | <PINTEGER_LITERAL> | <PSTRING_LITERAL>)*
id=<PIDENTIFIER> (<PIDENTIFIER> | <PINTEGER_LITERAL> | <PSTRING_LITERAL> | <PCOMMA> )*
([ <POPEN> [ (ds1=PragmaConstant())+ [ ( <PCOMMA> ds2=PragmaConstant() ) [ ( <PCOMMA> ds3=PragmaConstant() ) [ ( <PCOMMA> PragmaConstant() )+ ] ] ] ] <PCLOSE> ] )
{
if (id.image.equals("pack") && ds1 != null) {

View file

@ -176,6 +176,9 @@ int (__stdcall * GetSectionBlock) (
#pragma region Input compatibility macros
// nothing will parse after this line if the this fails
#pragma test for, pragma, with, commas outside parens
#pragma warning(disable)
#pragma warning(disable:4035 4793) // re-enable below