Skip to content

Commit cfce4a6

Browse files
authored
[libc] Allow user-defined LIBC_ASSERT macro. (#168087)
By only defining it if LIBC_ASSERT macro is not defined. Fixes #162392
1 parent e7db040 commit cfce4a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/src/__support/libc_assert.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
// The build is configured to just use the public <assert.h> API
1515
// for libc's internal assertions.
1616

17+
#ifndef LIBC_ASSERT
1718
#include <assert.h>
1819

1920
#define LIBC_ASSERT(COND) assert(COND)
21+
#endif // LIBC_ASSERT
2022

2123
#else // Not LIBC_COPT_USE_C_ASSERT
2224

0 commit comments

Comments
 (0)