mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 20:08:31 +01:00
cpp2ffi: get_parents_nameC correction
This commit is contained in:
@@ -1167,10 +1167,10 @@ function M.Parser()
|
|||||||
local function get_parents_nameC(it)
|
local function get_parents_nameC(it)
|
||||||
local parnam = ""
|
local parnam = ""
|
||||||
while it.parent do
|
while it.parent do
|
||||||
parnam = it.parent.name.."_"..parnam
|
parnam = it.parent.name.."::"..parnam
|
||||||
it = it.parent
|
it = it.parent
|
||||||
end
|
end
|
||||||
if parnam:sub(-1)=="_" then parnam = parnam:sub(1,-2) end
|
if parnam~="" then parnam = parnam:sub(1,-3) end
|
||||||
return parnam
|
return parnam
|
||||||
end
|
end
|
||||||
function par:gen_structs_and_enums()
|
function par:gen_structs_and_enums()
|
||||||
|
Reference in New Issue
Block a user