mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-09 11:28:30 +01:00
cpp2ffi: only use ftemplate_list if ftemplate_list[ttype] is defined (needed by implot_internal)
This commit is contained in:
@@ -1242,7 +1242,7 @@ function M.Parser()
|
||||
end
|
||||
if it.item:match"^%s*template%s+<" then
|
||||
local ttype,fun = it.item:match"^%s*template%s+<%s*typename%s+([^>]+)%s*>%s*(.+)$"
|
||||
if self.ftemplate_list then
|
||||
if self.ftemplate_list and self.ftemplate_list[ttype] then
|
||||
for iT,vT in ipairs(self.ftemplate_list[ttype]) do
|
||||
local funT = fun:gsub(ttype,vT)
|
||||
self:parseFunction(stname,{item=funT},namespace,it.locat)
|
||||
|
Reference in New Issue
Block a user