cpp2ffi: get correct line number when compiler outputs defines (gcc -dD)

This commit is contained in:
Victor Bombi
2020-09-25 15:46:33 +02:00
parent c2bd39271b
commit 416b4f017b

View File

@@ -1654,6 +1654,7 @@ local function location(file,locpathT,defines,COMPILER)
end
end
elseif in_location then
loc_num_incr = loc_num_incr + 1
local name,val = line:match(define_re)
if name and val then
--while defines[val] do val = defines[val] end