mirror of
https://github.com/cimgui/cimgui.git
synced 2026-05-30 13:05:34 +00:00
cpp2ffi: add prevcomments in functions
This commit is contained in:
@@ -995,7 +995,7 @@ local function parseFunction(self,stname,itt,namespace,locat)
|
||||
defT.call_args = caar --call_args
|
||||
defT.isvararg = signat:match("%.%.%.%)$")
|
||||
defT.location = locat
|
||||
local comentario = (itt.comments or "")..(comment or "")
|
||||
local comentario = (itt.prevcomments or "")..(itt.comments or "")..(comment or "")
|
||||
if comentario=="" then comentario=nil end
|
||||
defT.comment = comentario
|
||||
defT.argsT = argsArr
|
||||
@@ -2233,9 +2233,9 @@ function M.Parser()
|
||||
table.insert(txtclean,txt:sub(ini))
|
||||
print("end cleaning ------------------------------",nn)
|
||||
txt = table.concat(txtclean)
|
||||
--]]
|
||||
end
|
||||
--save_data("./preparse"..tostring(self):gsub("table: ","")..".c",txt)
|
||||
--]]
|
||||
self.itemsarr = par:parseItemsR2(txt)
|
||||
save_data("./itemsarr.lua",M.serializeTableF(self.itemsarr))--ToStr(self.itemsarr))
|
||||
itemsarr = self.itemsarr
|
||||
|
||||
Reference in New Issue
Block a user