mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-28 10:30:22 +01:00
show arg detection failures
This commit is contained in:
@@ -498,14 +498,17 @@ local function func_parser()
|
|||||||
else
|
else
|
||||||
type,name = arg:match("(.+)%s([^%s]+)")
|
type,name = arg:match("(.+)%s([^%s]+)")
|
||||||
end
|
end
|
||||||
--if not type or not name then print(funcname,type,name,argscsinpars,arg) end
|
if not type or not name then
|
||||||
|
print("failure arg detection",funcname,type,name,argscsinpars,arg)
|
||||||
--float name[2] to float[2] name
|
--float name[2] to float[2] name
|
||||||
local siz = name:match("(%[%d*%])")
|
local siz = name:match("(%[%d*%])")
|
||||||
|
else
|
||||||
if siz then
|
if siz then
|
||||||
type = type..siz
|
type = type..siz
|
||||||
name = name:gsub("(%[%d*%])","")
|
name = name:gsub("(%[%d*%])","")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
table.insert(argsArr,{type=type,name=name,ret=retf,signature=sigf})
|
table.insert(argsArr,{type=type,name=name,ret=retf,signature=sigf})
|
||||||
if arg:match("&") and not arg:match("const") then
|
if arg:match("&") and not arg:match("const") then
|
||||||
print(funcname,argscsinpars)
|
print(funcname,argscsinpars)
|
||||||
|
Reference in New Issue
Block a user