cpp2ffi take care or type and name separated by * without spaces

This commit is contained in:
sonoro1234
2019-01-27 17:20:07 +01:00
parent 036d2c1f9e
commit 71a9410ce6

View File

@@ -785,6 +785,9 @@ function M.Parser()
local typen,rest = line:match("%s*([^,]+)%s(%S+[,;])")
--local template_type = typen:match("/%*<(.+)>%*/")
--if template_type then typen = typen:match("(.+)/%*") end
if not typen then -- Lets try Type*name
typen,rest = line:match("([^,]+%*)(%S+[,;])")
end
local template_type
for k,v in pairs(self.templates) do
template_type = typen:match(k.."_(.+)")