From 89ff8c0cc00a3d9e7d93613d38f2df13bdf31e2d Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Sun, 27 Jan 2019 15:45:31 -0600 Subject: Remove Result, add plugin.nim, forceBuild --- tests/tmath.nim | 2 +- tests/tnimterop_c.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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" -- cgit v1.2.3