diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tnimterop_c.nim | 9 | ||||
| -rw-r--r-- | tests/tnimterop_c_plugin.nim | 7 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/tnimterop_c.nim b/tests/tnimterop_c.nim index e78e7f2..0360225 100644 --- a/tests/tnimterop_c.nim +++ b/tests/tnimterop_c.nim @@ -11,14 +11,7 @@ cDefine("FORCE") cIncludeDir testsIncludeDir() cCompile cSearchPath("test.c") -cPlugin: - import strutils - - proc onSymbol*(sym: var Symbol) {.exportc, dynlib.} = - if sym.name == "_Kernel": - sym.name = "uKernel" - else: - sym.name = sym.name.strip(chars={'_'}) +cPluginPath("tests/tnimterop_c_plugin.nim") cOverride: type diff --git a/tests/tnimterop_c_plugin.nim b/tests/tnimterop_c_plugin.nim new file mode 100644 index 0000000..68bb4d6 --- /dev/null +++ b/tests/tnimterop_c_plugin.nim @@ -0,0 +1,7 @@ +import strutils + +proc onSymbol*(sym: var Symbol) {.exportc, dynlib.} = + if sym.name == "_Kernel": + sym.name = "uKernel" + else: + sym.name = sym.name.strip(chars={'_'})
\ No newline at end of file |
