mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Merge pull request #5178 from krux02/devel
updated doc for dynlib pragma
This commit is contained in:
@@ -226,4 +226,8 @@ conjunction with the ``exportc`` pragma:
|
||||
proc exportme(): int {.cdecl, exportc, dynlib.}
|
||||
|
||||
This is only useful if the program is compiled as a dynamic library via the
|
||||
``--app:lib`` command line option.
|
||||
``--app:lib`` command line option. This pragma only has an effect for the code
|
||||
generation on the Windows target, so when this pragma is forgotten and the dynamic
|
||||
library is only tested on Mac and/or Linux, there won't be an error. On Windows
|
||||
this pragma adds ``__declspec(dllexport)`` to the function declaration.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user