Fix VaArgs configuration.

This commit is contained in:
Greg 2019-04-30 09:21:54 -04:00
parent 3573aa9144
commit e6232bdccb
2 changed files with 3 additions and 1 deletions

View File

@ -16,3 +16,4 @@ Classes = [
] ]
SysImports = [ "Foundation/Foundation.h" ] SysImports = [ "Foundation/Foundation.h" ]
Pragma = [ 'clang diagnostic ignored "-Wformat-security"' ] Pragma = [ 'clang diagnostic ignored "-Wformat-security"' ]
VaArgs = 32

View File

@ -173,8 +173,9 @@ func Start() (err error) {
w.SysImport(Config.SysImports) w.SysImport(Config.SysImports)
w.Pragma(Config.Pragma) w.Pragma(Config.Pragma)
if Config.VaArgs == 0 { if Config.VaArgs == 0 {
w.VaArgs = 16 Config.VaArgs = 16
} }
w.VaArgs = Config.VaArgs
for _, u := range tree { for _, u := range tree {
for _, n := range(u.Children()) { for _, n := range(u.Children()) {
switch x := n.(type) { switch x := n.(type) {