Skip to content

Commit 8496542

Browse files
author
itayzafrir
committed
Remove ASSERT macro
1 parent b6f5e51 commit 8496542

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

main.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@
2626
#define mbedtls_printf printf
2727
#endif
2828

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-
4029
#define ASSERT_STATUS(actual, expected) \
4130
do \
4231
{ \
@@ -341,7 +330,7 @@ static void cipher_examples(void)
341330

342331
int main(void)
343332
{
344-
ASSERT(psa_crypto_init() == PSA_SUCCESS);
333+
ASSERT_STATUS(psa_crypto_init(), PSA_SUCCESS);
345334
cipher_examples();
346335
exit:
347336
mbedtls_psa_crypto_free();

0 commit comments

Comments
 (0)