Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kCast | ( |  | TYPE,
|  |  | ITEM
| ) |  | kCast_(TYPE, ITEM)

Casts the ITEM argument to the specified TYPE.

Equivalent (TYPE)(ITEM).

This macro is guaranteed to evaluate its arguments only once.

Parameters

  TYPE | Type to which the item is cast.
  ITEM | Value to be cast.

Returns
  Result of the cast.