adding header pragma for printf ffi example
This commit is contained in:
parent
cbe25a41b0
commit
56a912fb2a
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue