Fix #181 - cPluginPath()
This commit is contained in:
parent
9cd39600d4
commit
0afb634b59
3 changed files with 24 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
7
tests/tnimterop_c_plugin.nim
Normal file
7
tests/tnimterop_c_plugin.nim
Normal file
|
|
@ -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={'_'})
|
||||
Loading…
Add table
Add a link
Reference in a new issue