From 6928a87b4ba4dd0ec5c04ffe6263b7b26498256b Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 18 Aug 2024 16:41:57 +1200 Subject: [PATCH] genbindings/static: fix not applying static for overloads --- cmd/genbindings/transformoptional.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/genbindings/transformoptional.go b/cmd/genbindings/transformoptional.go index f10807e2..5d5d868b 100644 --- a/cmd/genbindings/transformoptional.go +++ b/cmd/genbindings/transformoptional.go @@ -33,6 +33,8 @@ func astTransformOptional(parsed *CppParsedHeader) { OverrideMethodName: m.MethodName, ReturnType: m.ReturnType, Parameters: nil, + IsSignal: m.IsSignal, + IsStatic: m.IsStatic, } dupMethod.Parameters = append(dupMethod.Parameters, m.Parameters[0:x+1]...) c.Methods = append(c.Methods, dupMethod) // TODO can we insert them next, instead of at the end?