Lines Matching defs:NULL
59 * @returns Allocated memory on success, NULL on failure.
60 * @param pvOld What to reallocate, shall always be NULL.
65 AssertReturn(!pvOld, NULL);
105 * Template function wrapping NULL to get the correct NilRes signature
109 * @returns NULL with the right type.
114 return (T *)(NULL);
155 * @param aPtr Memory pointer to manage. Defaults to NULL.
157 RTCMemAutoPtr(T *aPtr = NULL)
170 : RTCAutoRes<T *, a_fnDestruct, RTCMemAutoNil<T> >((T *)a_fnAllocator(NULL, a_cElements * sizeof(T), RTMEM_TAG))
172 if (a_fZeroed && RT_LIKELY(this->get() != NULL))
231 this->reset(NULL);
232 T *pNewMem = (T *)a_fnAllocator(NULL, a_cElements * sizeof(T), RTMEM_TAG);
233 if (a_fZeroed && RT_LIKELY(pNewMem != NULL))
236 return pNewMem != NULL;
260 if (RT_LIKELY(aNewValue != NULL))
262 /* We want this both if aNewValue is non-NULL and if it is NULL. */
264 return aNewValue != NULL;