Mentions {.exportc.} limits. Refs #826.
This commit is contained in:
parent
ea42682dbc
commit
92e3f667bd
1 changed files with 3 additions and 3 deletions
|
|
@ -5172,9 +5172,9 @@ the same feature under the same name.
|
||||||
Exportc pragma
|
Exportc pragma
|
||||||
--------------
|
--------------
|
||||||
The `exportc`:idx: pragma provides a means to export a type, a variable, or a
|
The `exportc`:idx: pragma provides a means to export a type, a variable, or a
|
||||||
procedure to C. The optional argument is a string containing the C identifier.
|
procedure to C. Enums and constants can't be exported. The optional argument
|
||||||
If the argument is missing, the C name is the Nimrod
|
is a string containing the C identifier. If the argument is missing, the C
|
||||||
identifier *exactly as spelled*:
|
name is the Nimrod identifier *exactly as spelled*:
|
||||||
|
|
||||||
.. code-block:: Nimrod
|
.. code-block:: Nimrod
|
||||||
proc callme(formatstr: cstring) {.exportc: "callMe", varargs.}
|
proc callme(formatstr: cstring) {.exportc: "callMe", varargs.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue