diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tnimterop_c.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tnimterop_c.nim b/tests/tnimterop_c.nim index f0d5ed5..095fe20 100644 --- a/tests/tnimterop_c.nim +++ b/tests/tnimterop_c.nim @@ -8,6 +8,13 @@ cDefine("FORCE") cIncludeDir "$projpath/include" cAddSearchDir "$projpath/include" cCompile cSearchPath("test.c") + +cPlugin: + import strutils + + proc onSymbol*(sym: string): string {.exportc, dynlib.} = + return sym.strip(chars={'_'}) + cImport cSearchPath "test.h" check TEST_INT == 512 |
