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

@ -56,3 +56,7 @@ proc `$`*(self: GodotString): string =
proc toGodotString*(s: string): GodotString {.inline.} =
## Converts the Nim string into ``GodotString``
initGodotString(result, unsafeAddr s[0], cint(s.len + 1))
proc toGodotString*(s: cstring): GodotString {.inline.} =
## Converts the cstring into ``GodotString``
initGodotString(result, s, cint(s.len + 1))