Similarly, quite a few third-party libraries do not use the standard
DEBUG and assert() macros. When integrating new third-party code, be
sure to check whether you must define any extra macros to enable
assertions in debug builds.
For example, to enable assertions in the ffvp9 decoder, we had to
#define ASSERT_LEVEL 2:
https://hg.mozilla.org/mozilla-central/rev/e475e587c448#l1.34
On 5/11/16 4:19 PM, Nathan Froyd wrote:
libstdc++ has a "debug" mode:
https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html
which adds checks for iterator safety and algorithm preconditions.
Bug 1270832, recently landed on inbound, turns this mode on for debug
builds via our wrapped C++ headers. Please file a bug if you find
that debug mode is not getting turned on when you think it should.
Safer hacking,
-Nathan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform