mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-15 14:08:30 +01:00
cpp2ffi take care or type and name separated by * without spaces
This commit is contained in:
@@ -785,6 +785,9 @@ function M.Parser()
|
|||||||
local typen,rest = line:match("%s*([^,]+)%s(%S+[,;])")
|
local typen,rest = line:match("%s*([^,]+)%s(%S+[,;])")
|
||||||
--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
|
||||||
|
if not typen then -- Lets try Type*name
|
||||||
|
typen,rest = line:match("([^,]+%*)(%S+[,;])")
|
||||||
|
end
|
||||||
local template_type
|
local template_type
|
||||||
for k,v in pairs(self.templates) do
|
for k,v in pairs(self.templates) do
|
||||||
template_type = typen:match(k.."_(.+)")
|
template_type = typen:match(k.."_(.+)")
|
||||||
|
Reference in New Issue
Block a user