 |
ADTF
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
9#define ADTF_REQUIRE(__exp) \
12 THROW_ERROR_DESC(ERR_FAILED, "test failed at %s:%d: %s", __FILE__, __LINE__, #__exp);\
15#define ADTF_REQUIRE_OK(__exp) \
17 const auto __result = (__exp); \
18 if (IS_FAILED(__result)) \
20 THROW_ERROR_DESC(ERR_FAILED, "test failed at %s:%d: %s %s", __FILE__, __LINE__, #__exp, adtf::util::to_string(__result).GetPtr());\