mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-02 19:29:21 +00:00
Fully prohibit redefinition of predefined macros.
Code like the following was previously being allowed: #define __STDC__ /* no tokens */
This commit is contained in:
parent
5d7c002819
commit
c169c2bf92
@ -2552,6 +2552,8 @@ var
|
||||
mPtr^.algorithm := 0;
|
||||
if IsDefined(mPtr^.name) then begin
|
||||
mf := macroFound;
|
||||
if mf^.readOnly then
|
||||
goto 3;
|
||||
if mf^.parameters = mPtr^.parameters then begin
|
||||
tk1 := mf^.tokens;
|
||||
tk2 := mPtr^.tokens;
|
||||
|
Loading…
Reference in New Issue
Block a user