Add thread enter/exit callbacks
This commit is contained in:
parent
291e14a32a
commit
3a6acbbe92
3 changed files with 21 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue