generator.lua take care of type and name separated by * without spaces

This commit is contained in:
sonoro1234
2018-12-21 11:59:35 +01:00
parent 67f3b097a5
commit 907c2fddce

View File

@@ -1004,6 +1004,9 @@ local function gen_structs_and_enums_table(cdefs)
end
--split type name1,name2; in several lines
local typen,rest = line:match("([^,]+)%s(%S+[,;])")
if not typen then -- Lets try Type*name
typen,rest = line:match("([^,]+%*)(%S+[,;])")
end
--local template_type = typen:match("/%*<(.+)>%*/")
--if template_type then typen = typen:match("(.+)/%*") end
local template_type = typen:match("ImVector_(.+)")