ZFFramework
 
Loading...
Searching...
No Matches
ZFObjectCast.h File Reference

zfcast declarations More...

Go to the source code of this file.

Macros

#define zfcast(T_To, obj)
 safely cast ZFObject types, return null if not desired type
 

Detailed Description

zfcast declarations

Macro Definition Documentation

◆ zfcast

#define zfcast ( T_To,
obj )

safely cast ZFObject types, return null if not desired type

types can only be ZFObject or ZFInterface types

ADVANCED:

  • cast between ZFInterface or it's children types may take much time for dynamic checking, use with caution
  • try not to cast from and to the base ZFInterface * type