Remove Result, add plugin.nim, forceBuild
This commit is contained in:
parent
f7a77b7ab9
commit
89ff8c0cc0
6 changed files with 29 additions and 25 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue