Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
#define kTestState (   EXPRESSION)    kTestState_(EXPRESSION)

Within a kTry block, throws kERROR_STATE if the expression result is kFALSE.

If the EXPRESSION argument does not evaluate to kTRUE, kERROR_STATE is passed to an error-handling block. Otherwise, execution continues at the next statement.

This macro is guaranteed to evaluate its arguments only once.

Parameters
EXPRESSIONExpression that evaluates to a kBool value.
See also
Error Handling