Since hand-in-hand, libc++ uses llvm-libc to implement std::from_chars
. That's done via a "shared" layer where llvm-libc provides functions that intent to be pretty self-contained.
However, this layer includes libc/src/__support/libc_assert.h
, which provides its own definition of LIBC_ASSERT
based on assert
. In libc++, we have our own assertion macro and we would like to use that instead of libc's own definition. Hence, LIBC_ASSERT
would have to be lifted to something that can be customized by libc++ (and perhaps users generally speaking, IDK).
Does that seem fine? Do you have any preference about how to achieve that?