Re: importc: multiple headers?

2018-01-13 Thread monster
Nice! I asked that in december, and got no reply...

Re: importc: multiple headers?

2018-01-12 Thread yglukhov
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

importc: multiple headers?

2018-01-12 Thread hoanghuynh
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

importc: multiple headers?

2017-12-28 Thread monster
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.}