adding header pragma for printf ffi example

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

View file

@ -5485,7 +5485,7 @@ the argument is missing, the C name is the Nimrod identifier *exactly as
spelled*: spelled*:
.. code-block:: .. 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 Note that this pragma is somewhat of a misnomer: Other backends will provide
the same feature under the same name. the same feature under the same name.