From 54e64ba9c49fd28942215806647c15c0e7b25fe4 Mon Sep 17 00:00:00 2001 From: Victor Bombi Date: Thu, 24 Sep 2020 11:13:14 +0200 Subject: [PATCH] cpp2ffi: dont add comments to cimgui.h --- generator/cpp2ffi.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generator/cpp2ffi.lua b/generator/cpp2ffi.lua index 7c05c6d..7efcc65 100644 --- a/generator/cpp2ffi.lua +++ b/generator/cpp2ffi.lua @@ -1040,6 +1040,7 @@ function M.Parser() table.insert(commtab,"") if derived then table.insert(outtab,"\n "..derived.." _"..derived..";") + table.insert(commtab,"") end --local itlist,itemsin = parseItems(iner, false,locat) local itlist = itst.childs @@ -1114,6 +1115,7 @@ function M.Parser() end elseif it.re_name == "enum_re" then local enumname, enumbody = it.item:match"^%s*enum%s+([^%s;{}]+)[%s\n\r]*(%b{})" + enumbody = clean_comments(enumbody) if enumname then table.insert(outtab,"\ntypedef enum ".. enumbody..enumname..";") if it.parent then @@ -1783,7 +1785,7 @@ local function func_header_generate_funcs(FP) local manual = FP.get_manuals(def) if not manual and not def.templated then - local addcoment = def.comment or "" + local addcoment = "" --def.comment or "" local empty = def.args:match("^%(%)") --no args if def.constructor then assert(def.stname ~= "","constructor without struct")