aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2019-01-23 19:40:01 -0600
committerGanesh Viswanathan <dev@genotrance.com>2019-01-23 19:40:01 -0600
commit2cec3015edb78bbaf96bf8304ef7e4697ddb1a37 (patch)
treeae08930e8a81194e29108105c3aff5eb078e78ac /tests
parent46f7940f30ca7ef41dfcb01c09c72ce21dc47b89 (diff)
downloadnimterop-2cec3015edb78bbaf96bf8304ef7e4697ddb1a37.tar.gz
nimterop-2cec3015edb78bbaf96bf8304ef7e4697ddb1a37.zip
Fix #56 - override and skip, html links
Diffstat (limited to 'tests')
-rw-r--r--tests/tsoloud.nim17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/tsoloud.nim b/tests/tsoloud.nim
index 6d3028d..32006b0 100644
--- a/tests/tsoloud.nim
+++ b/tests/tsoloud.nim
@@ -5,6 +5,15 @@ gitPull("https://github.com/jarikomppa/soloud", "soloud", "include/*\nsrc/*\n")
cDebug()
cDisableCaching()
+cOverride:
+ type
+ Soloud* = pointer
+ AlignedFloatBuffer* = pointer
+
+ proc Soloud_destroy*(aSoloud: ptr Soloud) {.importc: "Soloud_destroy".}
+
+cSkipSymbol("WavStream_stop", "WavStream_setFilter")
+
const
inc = "soloud/include"
src = "soloud/src"
@@ -35,4 +44,10 @@ var
echo s.Soloud_init()
-s.Soloud_destroy() \ No newline at end of file
+s.Soloud_destroy()
+
+when declared(WavStream_stop):
+ assert "WavStream_stop() not skipped"
+
+when declared(WavStream_setFilter):
+ assert "WavStream_setFilter not skipped" \ No newline at end of file