[libc-commits] [PATCH] D156168: [libc][NFC] Simplify assert message generation
Roland McGrath via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Jul 26 14:51:49 PDT 2023
mcgrathr added inline comments.
================
Comment at: libc/src/__support/libc_assert.h:57
+ "' in function: '"); \
+ __llvm_libc::write_to_stderr(__PRETTY_FUNCTION__); \
+ __llvm_libc::write_to_stderr("'\n"); \
----------------
even if it's not a pastable string literal, it should be possible to do constexpr stuff to turn this into a single string constant for a single write call
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156168/new/
https://reviews.llvm.org/D156168
More information about the libc-commits
mailing list