# HG changeset patch
# User Steve Borho <[email protected]>
# Date 1426359980 18000
#      Sat Mar 14 14:06:20 2015 -0500
# Branch stable
# Node ID 72c8cb6a24674dafda081225afb3df3b4347f7cd
# Parent  46501a627a8d0d540c6189469fbed4df61a476e0
common: in checked builds, use hard abort when errors are found

If messages are allowed to spew, the first error is often lost. Break on the
first and report immediately.

diff -r 46501a627a8d -r 72c8cb6a2467 source/common/common.h
--- a/source/common/common.h    Sat Mar 14 10:26:59 2015 -0500
+++ b/source/common/common.h    Sat Mar 14 14:06:20 2015 -0500
@@ -98,9 +98,9 @@
 #if _DEBUG && defined(_MSC_VER)
 #define DEBUG_BREAK() __debugbreak()
 #elif __APPLE_CC__
-#define DEBUG_BREAK() __builtin_trap();
+#define DEBUG_BREAK() __builtin_trap()
 #else
-#define DEBUG_BREAK()
+#define DEBUG_BREAK() abort()
 #endif
 
 /* If compiled with CHECKED_BUILD perform run-time checks and log any that
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to