keep implementations locations

This commit is contained in:
Victor Bombi
2020-06-05 17:35:17 +02:00
parent 0f2a41e273
commit 4edb09f7c4
2 changed files with 23 additions and 8 deletions

View File

@@ -552,6 +552,20 @@ if #implementations > 0 then
end
pipe:close()
end
parser2.separate_locations = function(self, cdefs)
local sepcdefs = {}
for i,impl in ipairs(implementations) do
sepcdefs[i] = {[[imgui_impl_]].. impl,{}}
for j,cdef in ipairs(cdefs) do
if cdef[2]==sepcdefs[i][1] then
table.insert(sepcdefs[i][2],cdef[1])
end
end
end
return sepcdefs
end
parser2:do_parse()
-- save ./cimgui_impl.h