diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-27 15:45:31 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-27 15:45:31 -0600 |
| commit | 0d56471e28f3477cdd608d4aef82f2a0783afcf6 (patch) | |
| tree | d2d3af0cfdd3018dbb624f5745b41cdcf762beb1 /tests | |
| parent | d3a872e19e60043987b4618f516718f752309a76 (diff) | |
| download | nimterop-0d56471e28f3477cdd608d4aef82f2a0783afcf6.tar.gz nimterop-0d56471e28f3477cdd608d4aef82f2a0783afcf6.zip | |
Remove Result, add plugin.nim, forceBuild
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tmath.nim | 2 | ||||
| -rw-r--r-- | tests/tnimterop_c.nim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/tmath.nim b/tests/tmath.nim index a561251..63f1786 100644 --- a/tests/tmath.nim +++ b/tests/tmath.nim @@ -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") diff --git a/tests/tnimterop_c.nim b/tests/tnimterop_c.nim index c9b4667..457db7b 100644 --- a/tests/tnimterop_c.nim +++ b/tests/tnimterop_c.nim @@ -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" |
