work-around for nim-lang/Nim#7375
This commit is contained in:
parent
a536c102d6
commit
a05b5c1776
1 changed files with 4 additions and 2 deletions
|
|
@ -509,9 +509,11 @@ proc genType(obj: ObjectDecl): NimNode {.compileTime.} =
|
|||
let classNameIdent = ident(obj.name)
|
||||
let isRef: bool = if obj.parentName == "": false
|
||||
else: obj.parentName in refClasses
|
||||
# Wrapping bools with a newLit is required as a temporary workaround for
|
||||
# https://github.com/nim-lang/Nim/issues/7375
|
||||
result.add(getAst(
|
||||
registerGodotClass(classNameIdent, classNameLit, isRef, parentName,
|
||||
genSym(nskProc, "createFunc"), obj.isTool)))
|
||||
registerGodotClass(classNameIdent, classNameLit, newLit(isRef), parentName,
|
||||
genSym(nskProc, "createFunc"), newLit(obj.isTool))))
|
||||
|
||||
# Register fields (properties)
|
||||
for field in obj.fields:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue