mirror of
https://github.com/wiremod/wire.git
synced 2025-03-04 03:03:04 -05:00
Change preprocessor duplicate error to warning (#2869)
* Change preprocessor duplicate error to warning * Fix differing types oversight
This commit is contained in:
parent
6f2c24f50d
commit
ec7e2d266e
@ -200,7 +200,11 @@ local function handleIO(name)
|
||||
|
||||
for i, key in ipairs(retval[1]) do
|
||||
if ports[3][key] then
|
||||
self:Error("Directive (@" .. name .. ") contains multiple definitions of the same variable", columns[i])
|
||||
if ports[3][key] ~= retval[2][i] then
|
||||
self:Error("Directive (@" .. name .. ") contains multiple definitions of the same variable with differing types", columns[i])
|
||||
else
|
||||
self:Warning("Directive (@" .. name .. ") contains multiple definitions of the same variable", columns[i])
|
||||
end
|
||||
else
|
||||
local index = #ports[1] + 1
|
||||
ports[1][index] = key -- Index: Name
|
||||
|
Loading…
Reference in New Issue
Block a user