diff options
| author | micknoise <mickgrierson@gmail.com> | 2016-12-19 23:18:37 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-19 23:18:37 +0000 |
| commit | 063778c4e6285facf42a811183998c96db82ea87 (patch) | |
| tree | bc10f0d6a1139db681506c1ad4291a1b3e11bb3f | |
| parent | de7e1b6c41234d1b7e3601b2aec3104f5f79ead0 (diff) | |
| parent | c15ea47d03feca87e379a3f735b8ede057b32fa0 (diff) | |
Merge pull request #37 from sieren/loadogg-assertion
Added runtime assertion for undefined VORBIS
| -rw-r--r-- | maximilian.cpp | 2 | ||||
| -rwxr-xr-x | maximilian.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/maximilian.cpp b/maximilian.cpp index 0d9bcfd..b0c0b5e 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -751,6 +751,8 @@ bool maxiSample::loadOgg(string fileName, int channel) { } } return result; // this should probably be something more descriptive +#else + assert(false); // called but VORBIS not defined! #endif return 0; } diff --git a/maximilian.h b/maximilian.h index 2e8593d..11089fe 100755 --- a/maximilian.h +++ b/maximilian.h @@ -39,6 +39,7 @@ #include <iostream> #include <fstream> #include <string.h> +#include <cassert> #include <cstdlib> #include "math.h" #include <cerrno> |
