From a91fe1f713b6d2d264951d77520caec31fd00f74 Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Tue, 1 Aug 2017 20:50:10 +0700 Subject: [PATCH] Temporary solution for multilevel calls --- godot/nim/godotmacros.nim | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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..