Skip to content

Commit 1992da2

Browse files
committed
[libc++][atomic_ref] Add _LIBCPP_CHECK_WAIT_MEMORY_ORDER macro
1 parent 3b478a4 commit 1992da2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/include/__atomic/check_memory_order.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@
2727
_LIBCPP_DIAGNOSE_WARNING(__f == memory_order_release || __f == memory_order_acq_rel, \
2828
"memory order argument to atomic operation is invalid")
2929

30+
#define _LIBCPP_CHECK_WAIT_MEMORY_ORDER(__m) \
31+
_LIBCPP_DIAGNOSE_WARNING(__m == memory_order_release || __m == memory_order_acq_rel, \
32+
"memory order argument to atomic operation is invalid")
33+
3034
#endif // _LIBCPP___ATOMIC_CHECK_MEMORY_ORDER_H

0 commit comments

Comments
 (0)