Export generated init

This commit is contained in:
Ruslan Mustakov 2017-09-04 20:28:13 +07:00
commit ee53768c13
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
version = "0.5.7" version = "0.5.8"
author = "Xored Software, Inc." author = "Xored Software, Inc."
description = "Godot Engine bindings" description = "Godot Engine bindings"
license = "MIT" license = "MIT"

View file

@ -466,7 +466,7 @@ proc genType(obj: ObjectDecl): NimNode {.compileTime.} =
returnType: newEmptyNode(), returnType: newEmptyNode(),
isVirtual: true, isVirtual: true,
isNoGodot: false, isNoGodot: false,
nimNode: newProc(ident("init"), body = initBody, nimNode: newProc(postfix(ident("init"), "*"), body = initBody,
procType = nnkMethodDef) procType = nnkMethodDef)
)) ))
else: else: