Given this prototype: proc test*(): cstring {.cdecl, importc: "test", dynlib: test.}
Is the cstring returned going to be garbage collected by Nim or do I have to manually free it like in C?
Is it GC_unref()?
var t: cstring = test()
...
GC_unref(t)
I get" Error: type mismatch: got (cstring) but expected one of: system.GC_unref(x: seq[T]) system.GC_unref(x: string) system.GC_unref(x: ref T)