The previous assert patch only changed the internal LIBC_ASSERT macro.
The public assert function also needs to be moved since the previous
printing method was removed. This patch refactors the display code into
a separate file so that it can safely be included by external code. This
isn't ideal, but passing the macros to functions turns them from literal
strings to char*s, requiring manual concatenation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Delaying landing this patch since I discovered that assert is one of the last macros still in headergen. I need to do more digging to sort that out.