Remove Result, add plugin.nim, forceBuild

This commit is contained in:
Ganesh Viswanathan 2019-01-27 15:45:31 -06:00 committed by genotrance
commit 89ff8c0cc0
6 changed files with 29 additions and 25 deletions

View file

@ -14,7 +14,7 @@ cAddStdDir()
cPlugin:
import strutils
proc onSymbol*(sym: var Symbol): Result {.exportc, dynlib.} =
proc onSymbol*(sym: var Symbol) {.exportc, dynlib.} =
sym.name = sym.name.strip(chars={'_'})
cImport cSearchPath("math.h")

View file

@ -12,7 +12,7 @@ cCompile cSearchPath("test.c")
cPlugin:
import strutils
proc onSymbol*(sym: var Symbol): Result {.exportc, dynlib.} =
proc onSymbol*(sym: var Symbol) {.exportc, dynlib.} =
sym.name = sym.name.strip(chars={'_'})
cImport cSearchPath "test.h"