cpp2ffi: get_parents_nameC correction

This commit is contained in:
Victor Bombi
2020-10-28 17:51:16 +01:00
parent c46a2eded6
commit 0704912579

View File

@@ -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()