all repos — min @ 3139a9ed24862b307c85fc9bb6ee5d180a2b51a2

A small but practical concatenative programming language.

Moved pragma into the include file as well
Peter Munch-Ellingsen peterme@peterme.net
Wed, 25 Oct 2017 23:06:09 +0200
commit

3139a9ed24862b307c85fc9bb6ee5d180a2b51a2

parent

e8683f56b3be94e952dcb394f6812b5681d0edff

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M dynamic/dynamicadd.nimdynamic/dynamicadd.nim

@@ -1,7 +1,6 @@

## This is all you need to create a min module in Nim ## Compile with `nim c --app:lib --noMain -d:release dynamicadd.nim` -{.pragma: rtl, exportc, dynlib, cdecl.} -import mindyn +include mindyn proc setup*(): DynInfo {.rtl.} = result = DynInfo(moduleName: "the_lib", dynlibVersion: 1)
M dynamic/mindyn.nimdynamic/mindyn.nim

@@ -1,3 +1,4 @@

+{.pragma: rtl, exportc, dynlib, cdecl.} type DynInfo* = object moduleName*: string # The name of the symbol to load and run