Zen API
 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
EXPRESSIONExpression that evaluates to a kBool value.
STATUSStatus code to be returned if EXPRESSION is kFALSE.
See also
Error Handling