On 23/03/15 16:08, Derek Buitenhuis wrote:
On 3/23/2015 1:53 PM, Luca Barbato wrote:
Asserts are something you use while debugging to check for the impossible.

I disagree. This is EXACTLY what asserts are for, and why compilers generate the
code they do. Otherwise you may as well use a printf and exit.

and that's exactly what __assert_fail does... actually calling abort()...

#define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0)))

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to