aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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