david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[libc] Add ASSERTED macro to test if any assertion has triggered

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2014-12-10 01:45:30 +00:00
parent 14722c27d6
commit 67879f66eb
1 changed files with 2 additions and 0 deletions

View File

@ -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