Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kTest | ( |  | EXPRESSION | ) | kTest_(EXPRESSION)

Used within a kTry block to conditionally jump to the first error handling block (e.g.

kCatch).

If the EXPRESSION argument does not evaluate to kOK, the result of the expression 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 kStatus value.

See also
  Error Handling