Update for latest Nim

This commit is contained in:
Ruslan Mustakov 2017-11-08 11:39:07 +07:00
commit a93dcd1d4d
2 changed files with 3 additions and 3 deletions

View file

@ -4,4 +4,4 @@ description = "Godot Engine bindings"
license = "MIT" license = "MIT"
srcDir = "godot" srcDir = "godot"
requires "nim >= 0.17.0", "compiler >= 0.17.0" requires "nim >= 0.17.3", "compiler >= 0.17.3"

View file

@ -794,7 +794,7 @@ proc genTypeFile(types: Table[string, GodotType], targetDir: string) =
) )
godotApiTypesTree.add(regNode) godotApiTypesTree.add(regNode)
renderModule(godotApiTypesTree, targetDir / "godottypes.nim") writeFile(targetDir / "godottypes.nim", renderTree(godotApiTypesTree))
proc genSingletonWithDerived(tree: PNode, typ: GodotType, proc genSingletonWithDerived(tree: PNode, typ: GodotType,
types: Table[string, GodotType]) = types: Table[string, GodotType]) =
@ -909,7 +909,7 @@ proc genApi*(targetDir: string, apiJsonFile: string) =
makeMethod(types, tree, methodBindRegsitry, typ, meth, makeMethod(types, tree, methodBindRegsitry, typ, meth,
withImplementation = true) withImplementation = true)
renderModule(tree, targetDir / moduleName & ".nim") writeFile(targetDir / moduleName & ".nim", renderTree(tree))
megaImport.add("import \"" & moduleName & "\"\n") megaImport.add("import \"" & moduleName & "\"\n")