summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2017-01-04 14:02:51 +0100
committerArne Döring <arne.doering@gmx.net>2017-01-04 14:05:22 +0100
commit8282449aa1a2bdbfb172b361bdefcc5540f1a3fd (patch)
tree15888a5f230e44f2c920e018214045e24f741e77 /doc
parent850060009056ca94925831e0a9bdc65c56e0ae8c (diff)
downloadNim-8282449aa1a2bdbfb172b361bdefcc5540f1a3fd.tar.gz
updated doc for dynlib pragma
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/ffi.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/manual/ffi.txt b/doc/manual/ffi.txt
index d7d9596d2..e9b52eaca 100644
--- a/doc/manual/ffi.txt
+++ b/doc/manual/ffi.txt
@@ -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.
+