[libcxx-commits] [libcxx] [libc++] Add std::stacktrace (P0881R7) (PR #136528)

Steve O'Brien via libcxx-commits libcxx-commits at lists.llvm.org
Sat Oct 25 13:40:33 PDT 2025


================
@@ -291,6 +291,10 @@
 #define _LIBCPP_AVAILABILITY_HAS_BAD_FUNCTION_CALL_GOOD_WHAT_MESSAGE _LIBCPP_INTRODUCED_IN_LLVM_21
 // No attribute, since we've had bad_function_call::what() in the headers before
 
+// This controls the availability of C++23 <stacktrace>.
+#define _LIBCPP_AVAILABILITY_HAS_STACKTRACE _LIBCPP_INTRODUCED_IN_LLVM_21
+#define _LIBCPP_AVAILABILITY_STACKTRACE _LIBCPP_INTRODUCED_IN_LLVM_21_ATTRIBUTE
----------------
elsteveogrande wrote:

@Zingam I think I've used this correctly, please review :)

Sorry, I rebased and force-pushed (the rebase of many diffs was getting too difficult in this long-running PR) and comments got detached.  [Original here](https://github.com/llvm/llvm-project/pull/136528#issuecomment-3243758564)

https://github.com/llvm/llvm-project/pull/136528


More information about the libcxx-commits mailing list