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) {