mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
cpp2ffi.lua: clean = default
in constructor (appears in implot3d)
This commit is contained in:
@@ -1475,6 +1475,8 @@ function M.Parser()
|
|||||||
txt = txt:gsub(k,v)
|
txt = txt:gsub(k,v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
--clean = default in constructor (implot3d)
|
||||||
|
txt = txt:gsub("=%s*default","")
|
||||||
--save_data("./preprocode"..tostring(self):gsub("table: ","")..".c",txt)
|
--save_data("./preprocode"..tostring(self):gsub("table: ","")..".c",txt)
|
||||||
--clean bad positioned comments inside functionD_re
|
--clean bad positioned comments inside functionD_re
|
||||||
if self.COMMENTS_GENERATION then
|
if self.COMMENTS_GENERATION then
|
||||||
@@ -1557,6 +1559,7 @@ function M.Parser()
|
|||||||
local inistruct = clean_spaces(stru:match("(.-)%b{}"))
|
local inistruct = clean_spaces(stru:match("(.-)%b{}"))
|
||||||
--clean final:
|
--clean final:
|
||||||
inistruct = inistruct:gsub("%s*final%s*:",":")
|
inistruct = inistruct:gsub("%s*final%s*:",":")
|
||||||
|
|
||||||
--local stname = stru:match("struct%s*(%S+)%s*%b{}")
|
--local stname = stru:match("struct%s*(%S+)%s*%b{}")
|
||||||
local stname, derived
|
local stname, derived
|
||||||
if inistruct:match":" then
|
if inistruct:match":" then
|
||||||
|
Reference in New Issue
Block a user