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 07dcd7f commit d01c0d4Copy full SHA for d01c0d4
port/fal/inc/fal_def.h
@@ -13,6 +13,9 @@
13
14
#include <stdint.h>
15
#include <stdio.h>
16
+#ifdef FDB_USING_NATIVE_ASSERT
17
+#include <assert.h>
18
+#endif
19
20
#define FAL_SW_VERSION "0.5.99"
21
@@ -50,6 +53,7 @@
50
53
#endif
51
54
52
55
#if FAL_DEBUG
56
+#ifndef FDB_USING_NATIVE_ASSERT
57
#ifdef assert
58
#undef assert
59
@@ -59,6 +63,7 @@ if (!(EXPR)) \
63
FAL_PRINTF("(%s) has assert failed at %s.\n", #EXPR, __func__ ); \
60
64
while (1); \
61
65
}
66
62
67
68
/* debug level log */
69
#ifdef log_d
@@ -69,10 +74,12 @@ if (!(EXPR)) \
74
70
75
#else
71
76
77
72
78
73
79
80
81
#define assert(EXPR) ((void)0);
82
83
84
85
0 commit comments