mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-18 03:29:49 +00:00
Allow for function-like macros taking no parameters.
This was broken by commit 06a3719304.
This commit is contained in:
parent
fe6c410271
commit
c514c109ab
@ -1394,6 +1394,10 @@ if macro^.parameters >= 0 then begin {find the values of the parameters}
|
||||
done := false;
|
||||
end; {if}
|
||||
until done;
|
||||
if paramCount = 1 then
|
||||
if macro^.parameters = 0 then
|
||||
if parms^.tokens = nil then
|
||||
paramCount := 0;
|
||||
if paramCount <> macro^.parameters then
|
||||
Error(14);
|
||||
if token.kind <> rparench then begin {insist on a closing ')'}
|
||||
|
Loading…
x
Reference in New Issue
Block a user