mirror of
https://github.com/cimgui/cimgui.git
synced 2026-03-20 04:51:18 +00:00
avoid static const vardef assign not number (implot)
This commit is contained in:
@@ -2065,7 +2065,10 @@ function M.Parser()
|
|||||||
print("--skip enum forward declaration:",it2)
|
print("--skip enum forward declaration:",it2)
|
||||||
it2 = ""
|
it2 = ""
|
||||||
end
|
end
|
||||||
if it2:match"=%s*ImVec" then
|
--only vardef assign with number
|
||||||
|
local assig = it2:match("static const [^=]*=([^;]*);")
|
||||||
|
--print("it2",it2,"assig",assig,tonumber(assig))
|
||||||
|
if assig and not tonumber(assig) then
|
||||||
print("--skip = vardef declaration:",it2)
|
print("--skip = vardef declaration:",it2)
|
||||||
it2 = ""
|
it2 = ""
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user