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