diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-06-03 14:24:51 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-06-03 14:24:51 +0100 |
commit | ead2d4c9bd9e6b9685175d5ba66aeae95a4b532d (patch) | |
tree | 557e76c9cef55d4aca5853efd7a9c46d7aafb411 | |
parent | 67cef1b8b16698ed76f760d268e555dec068d0c3 (diff) | |
parent | 24c00440464edb68277fd5bc4f90caa0ad11c988 (diff) | |
download | Nim-ead2d4c9bd9e6b9685175d5ba66aeae95a4b532d.tar.gz |
Merge pull request #1238 from klaufir/devel
adding header pragma for printf ffi example
-rw-r--r-- | doc/manual.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual.txt b/doc/manual.txt index 5afe385bb..3af41faec 100644 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -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. |