mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 20:08:31 +01:00
take care of pointers to templates
This commit is contained in:
@@ -1716,8 +1716,9 @@ function M.Parser()
|
|||||||
end
|
end
|
||||||
local template_type
|
local template_type
|
||||||
for k,v in pairs(self.templates) do
|
for k,v in pairs(self.templates) do
|
||||||
local template_type2 = typen:match(k.."_(.+)")
|
--local template_type2 = typen:match(k.."_(.+)")
|
||||||
if template_type2 then
|
local template_type2 = typen:match(k.."_([^%*]+)") --discard * for pointers
|
||||||
|
if template_type2 then
|
||||||
for k1,k2 in pairs(v) do
|
for k1,k2 in pairs(v) do
|
||||||
if template_type2==k2 then
|
if template_type2==k2 then
|
||||||
template_type=k1
|
template_type=k1
|
||||||
|
Reference in New Issue
Block a user