Nice! I asked that in december, and got no reply...
header pragma allows multiple headers in the following way:
proc myProc() {.importc, header: """#include
#include """.}
It is worth noting that header pragma better be avoided as it makes your file
dependent on the header. When function
Hi,
if I want to use the importc pragma, but the header containing the function I
want only works properly, if prefixed by one or more other headers, how do I do
this?
This is the example in the doc:
proc printf(formatstr: cstring) {.header: "", importc: "printf",
varargs.} Run So, what if
Hi,
if I want to use the importc pragma, but the header containing the function I
want only works properly, if prefixed by one or more other headers, how do I do
this?
This is the example in the doc:
proc printf(formatstr: cstring) {.header: "", importc: "printf",
varargs.}