Macros used in CryAction Vehicle.
#define CAST_VEHICLEOBJECT(type, objptr) \ (objptr->GetId() == type::m_objectId) ? (type*)objptr : NULL
IVehicleSystem.h
#define DEFINE_VEHICLEOBJECT(obj) \ TVehicleObjectId obj::m_objectId = InvalidVehicleObjectId;
IVehicleSystem.h
#define ENABLE_VEHICLE_DEBUG 1
IVehicleSystem.h
compile out debug draw code in release builds
#define IMPLEMENT_VEHICLEOBJECT \ public: \ static TVehicleObjectId m_objectId; \ friend struct IVehicleSystem; \ virtual TVehicleObjectId GetId() { return m_objectId; }
IVehicleSystem.h