Changeset 55950 in vbox for trunk/include/iprt
- Timestamp:
- May 19, 2015 11:46:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mem.h
r52021 r55950 752 752 { \ 753 753 void *pv = RTMemEfAlloc(cb, RTMEM_TAG, RT_SRC_POS); \ 754 if (RT_ UNLIKELY(!pv)) \755 throw std::bad_alloc(); \756 return pv; \754 if (RT_LIKELY(pv)) \ 755 return pv; \ 756 throw std::bad_alloc(); \ 757 757 } \ 758 758 void *operator new(size_t cb, const std::nothrow_t ¬hrow_constant) RT_NO_THROW \ … … 764 764 { \ 765 765 void *pv = RTMemEfAlloc(cb, RTMEM_TAG, RT_SRC_POS); \ 766 if (RT_ UNLIKELY(!pv)) \767 throw std::bad_alloc(); \768 return pv; \766 if (RT_LIKELY(pv)) \ 767 return pv; \ 768 throw std::bad_alloc(); \ 769 769 } \ 770 770 void *operator new[](size_t cb, const std::nothrow_t ¬hrow_constant) RT_NO_THROW \
Note:
See TracChangeset
for help on using the changeset viewer.