ADTF
Loading...
Searching...
No Matches
adtf_require.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ADTF_REQUIRE(__exp)
 
#define ADTF_REQUIRE_OK(__exp)
 

Detailed Description

Copyright © Audi Electronics Venture GmbH. All rights reserved

Macro Definition Documentation

◆ ADTF_REQUIRE

#define ADTF_REQUIRE ( __exp)
Value:
if (!(__exp)) \
{\
THROW_ERROR_DESC(ERR_FAILED, "test failed at %s:%d: %s", __FILE__, __LINE__, #__exp);\
}

◆ ADTF_REQUIRE_OK

#define ADTF_REQUIRE_OK ( __exp)
Value:
{\
const auto __result = (__exp); \
if (IS_FAILED(__result)) \
{\
THROW_ERROR_DESC(ERR_FAILED, "test failed at %s:%d: %s %s", __FILE__, __LINE__, #__exp, adtf::util::to_string(__result).GetPtr());\
}\
}
#define IS_FAILED(s)
Check if result is failed.
Definition result.h:20