From 54d962afd4e7dd7273c3ca917ef716838338aaff Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Thu, 5 Oct 2017 18:55:51 +0700 Subject: [PATCH] Fix void return type in godotapigen --- godot/godotapigen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godot/godotapigen.nim b/godot/godotapigen.nim index f718c60..a8c9804 100644 --- a/godot/godotapigen.nim +++ b/godot/godotapigen.nim @@ -532,7 +532,7 @@ proc doGenerateMethod(tree: PNode, methodBindRegistry: var HashSet[string], body.add(newNode(nkVarSection).addChain(newIdentDefs( retValIdent, ident("GodotString"), ))) - else: + elif meth.returnType != "void": isObjRet = true body.add(newNode(nkVarSection).addChain(newIdentDefs( retValIdent, newNode(nkPtrTy).addChain(ident("GodotObject")),