From e6232bdccbfce786e95da2e1224bb55f854cd96b Mon Sep 17 00:00:00 2001 From: Greg Date: Tue, 30 Apr 2019 09:21:54 -0400 Subject: [PATCH] Fix VaArgs configuration. --- examples/foundation/nswrap.toml | 1 + main.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/foundation/nswrap.toml b/examples/foundation/nswrap.toml index 9aa0917..1c22470 100644 --- a/examples/foundation/nswrap.toml +++ b/examples/foundation/nswrap.toml @@ -16,3 +16,4 @@ Classes = [ ] SysImports = [ "Foundation/Foundation.h" ] Pragma = [ 'clang diagnostic ignored "-Wformat-security"' ] +VaArgs = 32 diff --git a/main.go b/main.go index 8694f2b..f61c2d7 100644 --- a/main.go +++ b/main.go @@ -173,8 +173,9 @@ func Start() (err error) { w.SysImport(Config.SysImports) w.Pragma(Config.Pragma) if Config.VaArgs == 0 { - w.VaArgs = 16 + Config.VaArgs = 16 } + w.VaArgs = Config.VaArgs for _, u := range tree { for _, n := range(u.Children()) { switch x := n.(type) {