Lines Matching refs:_ptr
78 * @param _ptr The object to delete.
80 #define NS_DELETEXPCOM(_ptr) \
82 delete (_ptr); \
87 * @param _ptr The interface pointer.
89 #define NS_ADDREF(_ptr) \
90 (_ptr)->AddRef()
136 * @param _ptr The interface pointer.
138 #define NS_RELEASE(_ptr) \
140 (_ptr)->Release(); \
141 (_ptr) = 0; \
146 * @param _ptr The interface pointer.
157 * @param _ptr The interface pointer.
159 #define NS_RELEASE2(_ptr,_rv) \
161 _rv = (_ptr)->Release(); \
162 if (0 == (_rv)) (_ptr) = 0; \
167 * @param _ptr The interface pointer.
169 #define NS_IF_RELEASE(_ptr) \
171 if (_ptr) { \
172 (_ptr)->Release(); \
173 (_ptr) = 0; \