mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
cpp2ffi: type &name -> type& name
This commit is contained in:
@@ -774,7 +774,9 @@ local function parseFunction(self,stname,itt,namespace,locat)
|
|||||||
local noname_counter = 0
|
local noname_counter = 0
|
||||||
for i,ar in ipairs(argsTa) do
|
for i,ar in ipairs(argsTa) do
|
||||||
--avoid var name without space type&name -> type& name
|
--avoid var name without space type&name -> type& name
|
||||||
ar = ar:gsub("(%S)&(%S)","%1& %2")
|
-- also do type &name -> type& name
|
||||||
|
--ar = ar:gsub("(%S)&(%S)","%1& %2")
|
||||||
|
ar = ar:gsub("(%S)%s*&(%S)","%1& %2")
|
||||||
local typ,name,retf,sigf,reftoptr,defa,ar1
|
local typ,name,retf,sigf,reftoptr,defa,ar1
|
||||||
local has_cdecl = ar:match"__cdecl"
|
local has_cdecl = ar:match"__cdecl"
|
||||||
if has_cdecl then ar = ar:gsub("__cdecl","") end
|
if has_cdecl then ar = ar:gsub("__cdecl","") end
|
||||||
|
Reference in New Issue
Block a user