You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importc here is needed to ensure that the C typedef is used where relevant, and not the thing that Nim thinks is equivalent: Nim lacks the language to represent const void* correctly - this leads to compile issues down the line with const-vs-non-const type problems.
The above should be SomeProc* {.importc: "some_proc", header: "test.h".} = proc (key: pointer) {.cdecl.}
The text was updated successfully, but these errors were encountered:
importc
here is needed to ensure that theC
typedef is used where relevant, and not the thing that Nim thinks is equivalent: Nim lacks the language to representconst void*
correctly - this leads to compile issues down the line with const-vs-non-const type problems.The above should be
SomeProc* {.importc: "some_proc", header: "test.h".} = proc (key: pointer) {.cdecl.}
The text was updated successfully, but these errors were encountered: