From 71a9410ce600671fd6ab9ff87972970c0308bf43 Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Sun, 27 Jan 2019 17:20:07 +0100 Subject: [PATCH] cpp2ffi take care or type and name separated by * without spaces --- generator/cpp2ffi.lua | 3 +++ 1 file changed, 3 insertions(+) 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.."_(.+)")