Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-23 23:31:12 +0300
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-23 23:31:12 +0300
commit23da3d3017b4ada25d489a8bf5a146108308800b (patch)
tree444a104942874b59b0bd2e95605e440da0c5c313
parent83f9782c25e7834aa5f17847294927e31e2f459f (diff)
With assertions disabled, we can still return OPUS_INTERNAL_ERROR
-rw-r--r--celt/arch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/arch.h b/celt/arch.h
index dcfd9491..ad7bf283 100644
--- a/celt/arch.h
+++ b/celt/arch.h
@@ -83,7 +83,7 @@ void celt_fatal(const char *str, const char *file, int line)
#else
#define celt_assert(cond)
#define celt_assert2(cond, message)
-#define MUST_SUCCEED(call) call
+#define MUST_SUCCEED(call) do {if((call) != OPUS_OK) {RESTORE_STACK; return OPUS_INTERNAL_ERROR;} } while (0)
#endif
#if defined(ENABLE_ASSERTIONS)