Commit de5021e9 authored by Mingda Zhang's avatar Mingda Zhang Committed by Facebook GitHub Bot

CO_SKIP_IF

Reviewed By: yfeldblum

Differential Revision: D33118848

fbshipit-source-id: c69b1f8f415b130d5d7a6487e7027d5c1e49865f
parent e0204da8
......@@ -239,4 +239,13 @@
#define CO_SKIP(message) \
co_return GTEST_MESSAGE_(message, ::testing::TestPartResult::kSkip)
/**
* Coroutine version of SKIP_IF()
*/
#define CO_SKIP_IF(expr, message) \
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
if (!(expr)) { \
} else \
CO_SKIP(message)
#endif // FOLLY_HAS_COROUTINES
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment