godot-nim/godot/nimruntime.nim
Ruslan Mustakov f5769045fc No destructors
2017-07-28 17:56:28 +07:00

14 lines
362 B
Nim

# Copyright 2017 Xored Software, Inc.
import asyncdispatch
import godot, node
gdobj NimRuntime of Node:
method process*(delta: float64) =
if asyncdispatch.hasPendingOperations():
poll(0)
GC_step(2000, false, 0)
when not defined(release):
onUnhandledException = proc(errorMsg: string) =
printError("Unhandled Nim exception: " & errorMsg)