Few existing call-sites have been modified to use LIBC_ASSERT.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| libc/src/__support/float_to_string.h | ||
|---|---|---|
| 67 | I don't see anywhere in the LIBC_ASSERT definition that can take the error message. Also, this is && with the conditions in the previous line? | |
| libc/src/__support/float_to_string.h | ||
|---|---|---|
| 67 | That is just the conventional way to attach messages to asserts: https://stackoverflow.com/questions/5867834/assert-with-message | |
| libc/src/__support/float_to_string.h | ||
|---|---|---|
| 67 | FWIW, there are many many examples of such uses with plain assert in LLVM. Example: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Analysis/AssumptionCache.cpp#L175 | |
| libc/src/__support/float_to_string.h | ||
|---|---|---|
| 67 | Thanks, I see how the message is printed. It basically comes together with the whole condition in #COND | |
I don't see anywhere in the LIBC_ASSERT definition that can take the error message. Also, this is && with the conditions in the previous line?