Add thread enter/exit callbacks

This commit is contained in:
Ruslan Mustakov 2017-07-26 17:50:36 +07:00
commit 3a6acbbe92
3 changed files with 21 additions and 1 deletions

View file

@ -285,6 +285,10 @@ proc print*(message: string) {.inline.} =
let s = message.toGodotString()
godotPrint(s)
proc print*(message: cstring) {.inline.} =
let s = message.toGodotString()
godotPrint(s)
template printWarning*(warn: typed) =
let (filename, line) = instantiationInfo()
godotPrintWarning(cstring($warn), nil, cstring(filename), line.cint)