mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-10 11:58:30 +01:00
cpp2ffi: skip enum forward declarations
This commit is contained in:
@@ -1492,6 +1492,12 @@ function M.Parser()
|
|||||||
end
|
end
|
||||||
elseif it.re_name == "functypedef_re" then
|
elseif it.re_name == "functypedef_re" then
|
||||||
it2 = clean_functypedef(it2)
|
it2 = clean_functypedef(it2)
|
||||||
|
else
|
||||||
|
assert(it.re_name == "vardef_re")
|
||||||
|
if it2:match"enum" then
|
||||||
|
print("--skip enum forward declaration:",it2)
|
||||||
|
it2 = ""
|
||||||
|
end
|
||||||
end
|
end
|
||||||
--table.insert(outtabpre,it2)
|
--table.insert(outtabpre,it2)
|
||||||
table.insert(outtab,it2)
|
table.insert(outtab,it2)
|
||||||
@@ -2389,10 +2395,7 @@ M.func_header_generate = func_header_generate
|
|||||||
|
|
||||||
local code = [[
|
local code = [[
|
||||||
|
|
||||||
struct pedro {
|
enum pedro : int ;
|
||||||
int uno = 1;
|
|
||||||
bool dos = {};
|
|
||||||
};
|
|
||||||
|
|
||||||
]]
|
]]
|
||||||
local parser = M.Parser()
|
local parser = M.Parser()
|
||||||
|
Reference in New Issue
Block a user