Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kObjN | ( |  | TypeName_T,
|  |  | VarName_obj,
|  |  | T_object
| ) |  |

Declares a local this-pointer variable with a specified name and initializes it from a type-checked object handle.

The "N" suffix refers to providing a "named" this-variable. This macro should be used when accessing the instance fields of an object other than the current object (i.e., other instances of the same class, for example in assignment/copy methods, or instances of friend classes).

Parameters

  TypeName_T | Class type name (e.g. kObject).
  VarName_obj | This variable name (e.g. obj).
  T_object | Class instance (e.g. object).