Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kCheckTrue | ( |  | EXPRESSION,
|  |  | STATUS
| ) |  | kCheckTrue_(EXPRESSION, STATUS)

Executes a return statement if the given expression is kFALSE.

If the expression result is kFALSE, the current function will return STATUS.

This macro is guaranteed to evaluate its arguments only once.

Parameters

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

See also
  Error Handling