From a890b9f594dcbee8a63c6b5d3ab829555ed9500d Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Wed, 11 Feb 2026 17:48:06 +0100 Subject: [PATCH] avoid vardef = ImVec(...) happens in implot --- generator/cpp2ffi.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generator/cpp2ffi.lua b/generator/cpp2ffi.lua index ee1773b..b348113 100644 --- a/generator/cpp2ffi.lua +++ b/generator/cpp2ffi.lua @@ -2046,6 +2046,10 @@ function M.Parser() print("--skip enum forward declaration:",it2) it2 = "" end + if it2:match"=%s*ImVec" then + print("--skip = vardef declaration:",it2) + it2 = "" + end end --table.insert(outtabpre,it2) --table.insert(outtab,it2)