yinshengkai 3b6e7c1927 assert: When defining NDEBUG, do not use macro parameters
The implementation of assert in linux is as follows:
define assert(expr)        (__ASSERT_VOID_CAST (0))

After defining NDEBUG in sqlite, some variables will be undefined,
and referencing variables in assert will cause compilation errors.

sqlite3.c:28729:23: error: ‘mutexIsInit’ undeclared (first use in this function)
28729 |   assert( GLOBAL(int, mutexIsInit) );

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-02-21 13:28:20 -03:00
..
2023-05-17 10:24:42 +08:00
2023-12-30 08:48:43 -08:00
2023-09-08 00:59:31 +03:00
2023-10-19 21:38:45 +08:00
2023-10-19 21:38:45 +08:00
2023-07-13 10:11:58 +08:00
2023-10-30 18:20:22 +08:00
2023-07-11 23:32:17 +08:00
2023-07-28 20:56:22 -07:00
2023-05-19 02:40:38 +08:00
2023-07-11 23:32:17 +08:00
2023-11-29 02:13:19 -08:00
2023-07-29 07:28:23 -07:00
2023-05-05 18:36:36 +08:00
2024-02-02 09:03:18 -08:00