Skip to content

Commit

Permalink
arch/sim: Chagne ASSERT to assert in posix/sim_macho_init.c.
Browse files Browse the repository at this point in the history
since macOS doesn't define ASSERT
  • Loading branch information
xiaoxiang781216 authored and txy-21 committed Jan 16, 2025
1 parent 03674de commit da281ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/sim/src/sim/posix/sim_macho_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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
{
Expand Down

0 comments on commit da281ce

Please sign in to comment.