mirror of https://github.com/ipxe/ipxe.git
[libc] Add ASSERTED macro to test if any assertion has triggered
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/33/head
parent
14722c27d6
commit
67879f66eb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue