diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-24 22:44:16 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-24 22:44:16 -0600 |
| commit | fb997526de2aec135199d4d088f89bfc0c6b827d (patch) | |
| tree | c4e30b6b2474ff038c56999e0b14fbcabe784046 /tests | |
| parent | c3e442474b2ac450fd9d754cf7ab298d3c2ac65a (diff) | |
| download | nimterop-fb997526de2aec135199d4d088f89bfc0c6b827d.tar.gz nimterop-fb997526de2aec135199d4d088f89bfc0c6b827d.zip | |
Plugin support
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 |
