Merge pull request #1238 from klaufir/devel

adding header pragma for printf ffi example
This commit is contained in:
Dominik Picheta
2014-06-03 14:24:51 +01:00

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.