Expect the semicolon at the end of SAPI_ASSERT_OK_AND_ASSIGN

This commit is contained in:
Mariusz Zaborski 2022-03-16 09:18:32 -04:00
parent ee11d9fdb7
commit aae8ba47ee

View File

@ -30,7 +30,8 @@
#define SAPI_ASSERT_OK_AND_ASSIGN_IMPL(statusor, lhs, rexpr) \
auto statusor = (rexpr); \
ASSERT_THAT(statusor.status(), ::sapi::IsOk()); \
lhs = std::move(statusor).value();
lhs = std::move(statusor).value(); \
do {} while(0)
namespace sapi {
namespace internal {