From: Michael Brown Date: Wed, 10 Dec 2014 01:45:30 +0000 (+0000) Subject: [libc] Add ASSERTED macro to test if any assertion has triggered X-Git-Tag: v1.20.1~1031 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67879f66eb7951760c38ff01f51a5ea7452b3747;p=thirdparty%2Fipxe.git [libc] Add ASSERTED macro to test if any assertion has triggered Signed-off-by: Michael Brown --- diff --git a/src/include/assert.h b/src/include/assert.h index 655cbdc03..a33f6017c 100644 --- a/src/include/assert.h +++ b/src/include/assert.h @@ -20,6 +20,8 @@ FILE_LICENCE ( GPL2_OR_LATER ); extern unsigned int assertion_failures; +#define ASSERTED ( ASSERTING && ( assertion_failures != 0 ) ) + /** printf() for assertions * * This function exists so that the assert() macro can expand to