Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kAssertType | ( |  | OBJECT,
|  |  | SYMBOL
| ) |  |

Aborts execution if the type of the OBJECT argument is not equivalent to kTypeOf(SYMBOL).

Type is equivalence is determined using kObject_Is.

kAssertType statements are omitted if neither K_DEBUG nor K_ASSERT is defined.

Parameters

  OBJECT | Expression that evaluates to a kType value.
  SYMBOL | Type symbol, such as kArrayList.