constants work 1

This commit is contained in:
sonoro1234
2026-02-24 10:23:36 +01:00
parent c0c044e22f
commit e41d6fb1e8
5 changed files with 256 additions and 6 deletions

View File

@@ -1624,6 +1624,7 @@ function M.Parser()
--try to guess a compiler error
assert(not errstr:match" error")
os.remove(errfile)
self.constants = defines
return defines
end
function par:do_parse()
@@ -2917,7 +2918,8 @@ local function location(file,locpathT,defines,COMPILER,keepemptylines)
if name and val then
--while defines[val] do val = defines[val] end
--if val:match(number_re) or val:match(hex_re) then
table.insert(defines,{name , val})
--table.insert(defines,{name , val})
defines[name] = val
--end
end
end