Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kTestTrue | ( |  | EXPRESSION,
|  |  | STATUS
| ) |  | kTestTrue_(EXPRESSION, STATUS)

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

If the EXPRESSION argument evaluates to kFALSE, STATUS 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

  EXPRESSION | Expression that evaluates to a kBool value.
  STATUS | Status code to be thrown if EXPRESSION is kFALSE.

See also
  Error Handling