mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 20:08:31 +01:00
cpp2ffi: clean enumbody only if there is one
This commit is contained in:
@@ -1116,8 +1116,8 @@ 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
|
||||
enumbody = clean_comments(enumbody)
|
||||
table.insert(outtab,"\ntypedef enum ".. enumbody..enumname..";")
|
||||
if it.parent then
|
||||
if it.parent.re_name == "namespace_re" then
|
||||
|
Reference in New Issue
Block a user