mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-15 14:29:48 +00:00
Permit one-argument version of static_assert in C23 mode.
This commit is contained in:
parent
1db26a88ad
commit
22627cbc0d
@ -2782,8 +2782,12 @@ if (expressionType = nil) or (expressionType^.kind <> scalarType) then
|
|||||||
Error(18)
|
Error(18)
|
||||||
else if expressionValue = 0 then
|
else if expressionValue = 0 then
|
||||||
Error(132);
|
Error(132);
|
||||||
Match(commach, 86);
|
if token.kind = commach then begin
|
||||||
Match(stringconst, 83);
|
NextToken;
|
||||||
|
Match(stringconst, 83);
|
||||||
|
end {if}
|
||||||
|
else if cStd < c23 then
|
||||||
|
Error(86);
|
||||||
Match(rparench, 12);
|
Match(rparench, 12);
|
||||||
Match(semicolonch, 22);
|
Match(semicolonch, 22);
|
||||||
end; {DoStaticAssert}
|
end; {DoStaticAssert}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user