mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 05:21:49 +03:00
[libc] Add ASSERTED macro to test if any assertion has triggered
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user