We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6f5e51 commit 8496542Copy full SHA for 8496542
main.cpp
@@ -26,17 +26,6 @@
26
#define mbedtls_printf printf
27
#endif
28
29
-#define ASSERT(predicate) \
30
- do \
31
- { \
32
- if(!(predicate)) \
33
34
- mbedtls_printf( "\tassertion failed at %s:%d - '%s'\r\n", \
35
- __FILE__, __LINE__, #predicate); \
36
- goto exit; \
37
- } \
38
- } while (0)
39
-
40
#define ASSERT_STATUS(actual, expected) \
41
do \
42
{ \
@@ -341,7 +330,7 @@ static void cipher_examples(void)
341
330
342
331
int main(void)
343
332
{
344
- ASSERT(psa_crypto_init() == PSA_SUCCESS);
333
+ ASSERT_STATUS(psa_crypto_init(), PSA_SUCCESS);
345
334
cipher_examples();
346
335
exit:
347
336
mbedtls_psa_crypto_free();
0 commit comments