attempt to make 0.19 compatible
workaround for nim/macro/typedesc issue work-around for nim-lang/Nim#7375 fixed more isNil usages fixed new name of setStackBottom
This commit is contained in:
parent
f45281f5a0
commit
3a935b9308
6 changed files with 94 additions and 100 deletions
|
|
@ -73,12 +73,9 @@ proc newVariant*(r: cdouble): Variant {.inline.} =
|
|||
|
||||
proc newVariant*(s: string): Variant {.inline.} =
|
||||
new(result, variantFinalizer)
|
||||
if s.isNil:
|
||||
initGodotVariant(result.godotVariant)
|
||||
else:
|
||||
var godotStr = s.toGodotString()
|
||||
initGodotVariant(result.godotVariant, godotStr)
|
||||
godotStr.deinit()
|
||||
var godotStr = s.toGodotString()
|
||||
initGodotVariant(result.godotVariant, godotStr)
|
||||
godotStr.deinit()
|
||||
|
||||
import basis, nodepaths
|
||||
import planes, quats, rect2, aabb, rids
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue