diff --git a/godot/nim/godotmacros.nim b/godot/nim/godotmacros.nim index 97d21b0..4e33bd6 100644 --- a/godot/nim/godotmacros.nim +++ b/godot/nim/godotmacros.nim @@ -191,7 +191,7 @@ proc parseType(definition, callSite: NimNode): ObjectDecl = macro invokeVarArgs(procIdent, objIdent; minArgs, maxArgs: static[int], numArgsIdent, argSeqIdent; argTypes: seq[NimNode], - hasReturnValue: static[bool]): typed = + hasReturnValue, isStaticCall: static[bool]): typed = ## Produces statement in form: ## ## .. code-block:: nim @@ -233,7 +233,7 @@ macro invokeVarArgs(procIdent, objIdent; for i in minArgs..maxArgs: let branch = newNimNode(nnkOfBranch).add(newIntLitNode(i)) let branchBody = newStmtList() - let invocation = newNimNode(nnkCall) + var invocation = newNimNode(nnkCall) invocation.add(procIdent) invocation.add(objIdent) # self for idx in 0..