mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
better ftemplates repair
This commit is contained in:
@@ -1820,8 +1820,9 @@ function M.Parser()
|
|||||||
local ttype,fun = it.item:match"^%s*template%s+<%s*typename%s+([^>]+)%s*>%s*(.+)$"
|
local ttype,fun = it.item:match"^%s*template%s+<%s*typename%s+([^>]+)%s*>%s*(.+)$"
|
||||||
if self.ftemplate_list and self.ftemplate_list[ttype] then
|
if self.ftemplate_list and self.ftemplate_list[ttype] then
|
||||||
for iT,vT in ipairs(self.ftemplate_list[ttype]) do
|
for iT,vT in ipairs(self.ftemplate_list[ttype]) do
|
||||||
local funT = fun:gsub(" "..ttype," "..vT)
|
local funT = fun:gsub("([< %(])"..ttype,"%1"..vT)
|
||||||
funT = funT:gsub("sizeof%("..ttype.."%)","sizeof("..vT..")")
|
--funT = funT:gsub("sizeof%("..ttype.."%)","sizeof("..vT..")")
|
||||||
|
--local funT = fun:gsub(ttype,vT)
|
||||||
self:parseFunction(stname,{item=funT},namespace,it.locat)
|
self:parseFunction(stname,{item=funT},namespace,it.locat)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user