mirror of
https://github.com/cimgui/cimgui.git
synced 2026-06-21 14:14:53 +01:00
cpp2ffi: explicit str_subst
This commit is contained in:
@@ -2198,9 +2198,13 @@ function M.Parser()
|
||||
local txt = table.concat(cdefs2,"\n")
|
||||
--string substitution
|
||||
if self.str_subst then
|
||||
print("========== str_subst")
|
||||
local nn
|
||||
for k,v in pairs(self.str_subst) do
|
||||
txt = txt:gsub(k,v)
|
||||
txt,nn = txt:gsub(k,v)
|
||||
print(k,"done times:",nn)
|
||||
end
|
||||
print("========== str_subst end")
|
||||
end
|
||||
--clean = default in constructor (implot3d)
|
||||
txt = txt:gsub("=%s*default","")
|
||||
|
||||
Reference in New Issue
Block a user