diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-24 22:59:51 -0600 |
|---|---|---|
| committer | genotrance <dev@genotrance.com> | 2019-01-27 22:05:54 -0600 |
| commit | 44b529f5f5f76007f00e8157f158a496c7604779 (patch) | |
| tree | 09d73d550fd5410bb7e1619b9a76b21919f4b706 /tests | |
| parent | d8c75a43f725ca3fc4111a55587ce5ca69d024e9 (diff) | |
| download | nimterop-44b529f5f5f76007f00e8157f158a496c7604779.tar.gz nimterop-44b529f5f5f76007f00e8157f158a496c7604779.zip | |
Documentation, fix tmath on Windows
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tmath.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tmath.nim b/tests/tmath.nim index f32a1f5..5e98968 100644 --- a/tests/tmath.nim +++ b/tests/tmath.nim @@ -10,6 +10,13 @@ cDebug() cDisableCaching() cAddStdDir() + +cPlugin: + import strutils + + proc onSymbol*(sym: string): string {.exportc, dynlib.} = + return sym.strip(chars={'_'}) + cImport cSearchPath("math.h") check sin(5) == -0.9589242746631385 |
