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)
|
invocation.add(argIdent)
|
||||||
if hasReturnValue:
|
if hasReturnValue:
|
||||||
let theCall = newNimNode(nnkBracketExpr).add(newNimNode(nnkDotExpr).add(
|
let theCall = newNimNode(nnkBracketExpr).add(newNimNode(nnkDotExpr).add(
|
||||||
newCall("toGodot", newCall("newVariant", invocation)),
|
newCall("toGodot", invocation), ident("godotVariant")))
|
||||||
ident("godotVariant")))
|
|
||||||
branchBody.add(getAst(initGodotVariantCall(ident("result"), theCall)))
|
branchBody.add(getAst(initGodotVariantCall(ident("result"), theCall)))
|
||||||
else:
|
else:
|
||||||
branchBody.add(invocation)
|
branchBody.add(invocation)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue