diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tmath.nim | 4 | ||||
| -rw-r--r-- | tests/tnimterop_c.nim | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/tmath.nim b/tests/tmath.nim index 5e98968..a561251 100644 --- a/tests/tmath.nim +++ b/tests/tmath.nim @@ -14,8 +14,8 @@ cAddStdDir() cPlugin: import strutils - proc onSymbol*(sym: string): string {.exportc, dynlib.} = - return sym.strip(chars={'_'}) + proc onSymbol*(sym: var Symbol): Result {.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 095fe20..c9b4667 100644 --- a/tests/tnimterop_c.nim +++ b/tests/tnimterop_c.nim @@ -12,8 +12,8 @@ cCompile cSearchPath("test.c") cPlugin: import strutils - proc onSymbol*(sym: string): string {.exportc, dynlib.} = - return sym.strip(chars={'_'}) + proc onSymbol*(sym: var Symbol): Result {.exportc, dynlib.} = + sym.name = sym.name.strip(chars={'_'}) cImport cSearchPath "test.h" |
