mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-05-04 22:02:11 +00:00
add macro definition of assert using polarssl_exit
This commit is contained in:
parent
77d3638497
commit
4c09114c32
|
@ -15,10 +15,16 @@ typedef UINT32 uint32_t;
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#define assert(a) if( !( a ) ) \
|
||||||
|
{ \
|
||||||
|
polarssl_fprintf( stderr, "Assertion Failed at %s:%d - %s\n", \
|
||||||
|
__FILE__, __LINE__, #a ); \
|
||||||
|
polarssl_exit( 1 ); \
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 32-bit integer manipulation macros (big endian)
|
* 32-bit integer manipulation macros (big endian)
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue