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 e836941 commit 23ec0a1Copy full SHA for 23ec0a1
demo/libbsp/platform/80x86/linux/assert.c
@@ -51,6 +51,7 @@
51
/* --------------------------------- Notes --------------------------------- */
52
/* ----------------------------- Include files ----------------------------- */
53
#include <stdio.h>
54
+#include <stdlib.h>
55
56
#include "rkh.h"
57
@@ -70,8 +71,9 @@ rkh_assert(RKHROM char * const file, int line)
70
71
fprintf(stderr, "RKH_ASSERT: [%d] line from %s "
72
"file\n", line, file);
73
RKH_DIS_INTERRUPT();
- RKH_TR_FWK_ASSERT((RKHROM char *)file, __LINE__);
74
+ RKH_TR_FWK_ASSERT((RKHROM char *)file, line);
75
rkh_fwk_exit();
76
+ exit(EXIT_FAILURE);
77
}
78
79
/* ------------------------------ File footer ------------------------------ */
0 commit comments