mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-11 12:18:30 +01:00
generator.lua take care of type and name separated by * without spaces
This commit is contained in:
@@ -1004,6 +1004,9 @@ local function gen_structs_and_enums_table(cdefs)
|
|||||||
end
|
end
|
||||||
--split type name1,name2; in several lines
|
--split type name1,name2; in several lines
|
||||||
local typen,rest = line:match("([^,]+)%s(%S+[,;])")
|
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("/%*<(.+)>%*/")
|
--local template_type = typen:match("/%*<(.+)>%*/")
|
||||||
--if template_type then typen = typen:match("(.+)/%*") end
|
--if template_type then typen = typen:match("(.+)/%*") end
|
||||||
local template_type = typen:match("ImVector_(.+)")
|
local template_type = typen:match("ImVector_(.+)")
|
||||||
|
Reference in New Issue
Block a user