Hi,
I am new to Nim, and I am still learning. How do you wrap the following C function pointer in Nim?
int (*callback)(void*,int,char**,char**)
I tried to do the followings but it does not seem to work.
type
Callback = proc(customArg: pointer, columnCount: cint, values: cstringArray, columns: cstringArray): cint
Any help?
Thanks.
Henry
As summary, this could be:
type Callback =
proc(customArg: pointer, columnCount: cint, values, columns: cstringArray): cint {.cdecl.}