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 991121c commit 86bf11bCopy full SHA for 86bf11b
platform/emlib/inc/em_assert.h
@@ -31,6 +31,10 @@
31
#ifndef EM_ASSERT_H
32
#define EM_ASSERT_H
33
34
+#if defined(EM_ASSERT_CONFIG_FILE)
35
+#include EM_ASSERT_CONFIG_FILE
36
+#endif
37
+
38
#ifdef __cplusplus
39
extern "C" {
40
#endif
@@ -74,10 +78,19 @@ extern "C" {
74
78
/* not the assert expression (nor function name (C99)) */
75
79
void assertEFM(const char *file, int line);
76
80
/** Default assertion is not operational */
81
82
+#if !defined(EFM_ASSERT_USER)
83
77
84
#define EFM_ASSERT(expr) ((expr) ? ((void)0) : assertEFM(__FILE__, __LINE__))
85
86
#else
87
88
+#define EFM_ASSERT(expr) EFM_ASSERT_USER(expr)
89
90
+#endif /* !defined(EFM_ASSERT_USER */
91
92
+#else
93
94
95
#define EFM_ASSERT(expr) ((void)(expr))
96
0 commit comments