From da281cee13797de901f8684354b1ebb7b1bf6db1 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 17 Nov 2024 15:41:46 +0800 Subject: [PATCH] arch/sim: Chagne ASSERT to assert in posix/sim_macho_init.c. since macOS doesn't define ASSERT --- arch/sim/src/sim/posix/sim_macho_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sim/src/sim/posix/sim_macho_init.c b/arch/sim/src/sim/posix/sim_macho_init.c index 6447e5badff..7ddd8d2dc0b 100644 --- a/arch/sim/src/sim/posix/sim_macho_init.c +++ b/arch/sim/src/sim/posix/sim_macho_init.c @@ -78,7 +78,7 @@ static void save_and_replace_init_funcs(int argc, const char *argv[], init_func_t *fp; unsigned int nfuncs = &mod_init_func_end - &mod_init_func_start; - ASSERT(nfuncs > 0); + assert(nfuncs > 0); g_num_saved_init_funcs = nfuncs - 1; if (g_num_saved_init_funcs == 0) { @@ -102,7 +102,7 @@ static void save_and_replace_init_funcs(int argc, const char *argv[], { if (*fp == save_and_replace_init_funcs) { - ASSERT(i == 0); + assert(i == 0); } else {