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:
authorRalph Giles <giles@mozilla.com>2011-11-30 23:41:47 +0400
committerRalph Giles <giles@mozilla.com>2012-03-06 05:09:54 +0400
commit9357ae976e41a1418655e285a1988df808aa47a4 (patch)
tree9c6ebdc9c6ebc2f0f15f2445fe824a95946467ac
parent2fa9e6e5386fa5ef0bbe41038ca30bc16810ebb3 (diff)
Enable the silk debug macros with FIXED_DEBUG.
This isn't entirely accurate, since it's also used on integer math. However, the idea is similar: to add bounds checking. This code asserts rather than warning, so one must pass --enable-assertions to configure as well to get any output, and in that case the first instance is fatal. Quick testing shows both test_opus_decode and test_opus_encode trigger the assertions, but running the draft-10 test vectors does not.
-rw-r--r--silk/MacroDebug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/MacroDebug.h b/silk/MacroDebug.h
index a0d77c7f..8e06b2e8 100644
--- a/silk/MacroDebug.h
+++ b/silk/MacroDebug.h
@@ -31,7 +31,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/* Redefine macro functions with extensive assertion in DEBUG mode.
As functions can't be undefined, this file can't work with SigProcFIX_MacroCount.h */
-#if 0 && defined (_DEBUG) && !defined (silk_MACRO_COUNT)
+#if defined (FIXED_DEBUG) && !defined (silk_MACRO_COUNT)
#undef silk_ADD16
static inline opus_int16 silk_ADD16(opus_int16 a, opus_int16 b){