Fix invokeVarArgs return value
This commit is contained in:
parent
712be9ca5a
commit
5884cb766a
1 changed files with 1 additions and 2 deletions
|
|
@ -230,8 +230,7 @@ macro invokeVarArgs(procIdent, objIdent;
|
|||
invocation.add(argIdent)
|
||||
if hasReturnValue:
|
||||
let theCall = newNimNode(nnkBracketExpr).add(newNimNode(nnkDotExpr).add(
|
||||
newCall("toGodot", newCall("newVariant", invocation)),
|
||||
ident("godotVariant")))
|
||||
newCall("toGodot", invocation), ident("godotVariant")))
|
||||
branchBody.add(getAst(initGodotVariantCall(ident("result"), theCall)))
|
||||
else:
|
||||
branchBody.add(invocation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue