adding header pragma for printf ffi example

This commit is contained in:
klaufir
2014-06-01 04:20:47 +02:00
parent cbe25a41b0
commit 56a912fb2a

View File

@@ -5485,7 +5485,7 @@ the argument is missing, the C name is the Nimrod identifier *exactly as
spelled*:
.. code-block::
proc printf(formatstr: cstring) {.importc: "printf", varargs.}
proc printf(formatstr: cstring) {.header: "stdio.h", importc: "printf", varargs.}
Note that this pragma is somewhat of a misnomer: Other backends will provide
the same feature under the same name.