diff --git a/generator/cpp2ffi.lua b/generator/cpp2ffi.lua index 1819cbc..144667d 100644 --- a/generator/cpp2ffi.lua +++ b/generator/cpp2ffi.lua @@ -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.."_(.+)")