From 907c2fddce49aaa1f5bbf6232ecaa37a95a0ecdf Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Fri, 21 Dec 2018 11:59:35 +0100 Subject: [PATCH] generator.lua take care of type and name separated by * without spaces --- generator/generator.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generator/generator.lua b/generator/generator.lua index 6526cbe..89927fa 100644 --- a/generator/generator.lua +++ b/generator/generator.lua @@ -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_(.+)")