mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 20:08:31 +01:00
drop nonUDT2 and empty table cimgui_overloads
This commit is contained in:
@@ -601,9 +601,6 @@ end
|
||||
local function ADDnonUDT(FP)
|
||||
local defsT = FP.defsT
|
||||
local newcdefs = {}
|
||||
--for cimguiname,defs in pairs(defsT) do
|
||||
--for i,defT in ipairs(defs) do
|
||||
--local t = {cimguiname=cimguiname,signature=defT.signature,ret=defT.ret}
|
||||
for numcdef,t in ipairs(FP.funcdefs) do
|
||||
if t.cimguiname then
|
||||
local cimf = defsT[t.cimguiname]
|
||||
@@ -635,30 +632,9 @@ local function ADDnonUDT(FP)
|
||||
defsT[t.cimguiname][#defsT[t.cimguiname] + 1] = defT2
|
||||
defsT[t.cimguiname][t.signature.."nonUDT"] = defT2
|
||||
table.insert(newcdefs,{stname=t.stname,funcname=t.funcname,args=args,argsc=argscsinpars,signature=t.signature.."nonUDT",cimguiname=t.cimguiname,call_args=call_args,ret =t.ret})
|
||||
--converting to Simple type----------------------------------------------------
|
||||
local defT3 = {}
|
||||
--first strings
|
||||
for k,v in pairs(defT) do
|
||||
defT3[k] = v
|
||||
end
|
||||
--then argsT table
|
||||
defT3.argsT = {}
|
||||
for k,v in ipairs(defT.argsT) do
|
||||
table.insert(defT3.argsT,{type=v.type,name=v.name})
|
||||
end
|
||||
local comma = (#defT.argsT > 0) and "," or ""
|
||||
--defT3.args = "("..defT.ret.." *pOut"..comma..defT.args:sub(2)
|
||||
defT3.ret = defT.ret.."_Simple"
|
||||
defT3.retorig = defT.ret
|
||||
defT3.ov_cimguiname = (defT3.ov_cimguiname or defT3.cimguiname).."_nonUDT2"
|
||||
defT3.nonUDT = 2
|
||||
defT3.retref = nil
|
||||
defsT[t.cimguiname][#defsT[t.cimguiname] + 1] = defT3
|
||||
defsT[t.cimguiname][t.signature.."nonUDT2"] = defT3
|
||||
table.insert(newcdefs,{stname=t.stname,funcname=t.funcname,args=args,argsc=argscsinpars,signature=t.signature.."nonUDT2",cimguiname=t.cimguiname,call_args=call_args,ret =t.ret})
|
||||
end
|
||||
else print("not cimguiname in");M.prtable(t)
|
||||
end
|
||||
--end
|
||||
end
|
||||
for i,v in ipairs(newcdefs) do
|
||||
table.insert(FP.funcdefs,v)
|
||||
|
Reference in New Issue
Block a user