[libcxx-commits] [PATCH] D125634: [libc++] Use _LIBCPP_ASSERT by default for _PSTL_ASSERTions

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun May 15 09:15:23 PDT 2022


philnik created this revision.
philnik added reviewers: ldionne, Mordante, var-const.
Herald added a project: All.
philnik requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125634

Files:
  libcxx/include/__assert


Index: libcxx/include/__assert
===================================================================
--- libcxx/include/__assert
+++ libcxx/include/__assert
@@ -48,6 +48,10 @@
 # define _LIBCPP_ASSERT(expression, message) ((void)0)
 #endif
 
+#ifndef _PSTL_ASSERT
+#  define _PSTL_ASSERT(...) _LIBCPP_ASSERT((__VA_ARGS__), "")
+#endif
+
 _LIBCPP_BEGIN_NAMESPACE_STD
 
 _LIBCPP_OVERRIDABLE_FUNC_VIS _LIBCPP_AVAILABILITY_ASSERTION_HANDLER


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125634.429543.patch
Type: text/x-patch
Size: 435 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220515/b19b6bc8/attachment.bin>


More information about the libcxx-commits mailing list