Changeset 39089 in vbox
- Timestamp:
- Oct 24, 2011 12:04:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/alloc-ef-cpp.cpp
r39088 r39089 54 54 55 55 /** The hint that we're throwing std::bad_alloc is not apprecitated by MSC. */ 56 #ifdef _MSC_VER 57 # if _MSC_VER >= 1400 58 # define RT_EF_THROWS_BAD_ALLOC 56 #ifdef RT_EXCEPTIONS_ENABLED 57 # ifdef _MSC_VER 58 # if _MSC_VER >= 1400 59 # define RT_EF_THROWS_BAD_ALLOC 60 # else 61 # define RT_EF_THROWS_BAD_ALLOC throw(std::bad_alloc) 62 # endif 59 63 # else 60 # define RT_EF_THROWS_BAD_ALLOC throw(std::bad_alloc)64 # define RT_EF_THROWS_BAD_ALLOC throw(std::bad_alloc) 61 65 # endif 62 #else 63 # define RT_EF_THROWS_BAD_ALLOC throw(std::bad_alloc)64 #endif 66 #else /* !RT_EXCEPTIONS_ENABLED */ 67 # define RT_EF_THROWS_BAD_ALLOC 68 #endif /* !RT_EXCEPTIONS_ENABLED */ 65 69 66 70 … … 74 78 75 79 76 void *RT_EF_CDECL operator new(RT_EF_SIZE_T cb, const std::nothrow_t &) throw()80 void *RT_EF_CDECL operator new(RT_EF_SIZE_T cb, const std::nothrow_t &) RT_NO_THROW 77 81 { 78 82 void *pv = rtR3MemAlloc("new nothrow", RTMEMTYPE_NEW, cb, cb, NULL, ASMReturnAddress(), NULL, 0, NULL); … … 81 85 82 86 83 void RT_EF_CDECL operator delete(void *pv) throw()87 void RT_EF_CDECL operator delete(void *pv) RT_NO_THROW 84 88 { 85 89 rtR3MemFree("delete", RTMEMTYPE_DELETE, pv, ASMReturnAddress(), NULL, 0, NULL); … … 87 91 88 92 89 void RT_EF_CDECL operator delete(void * pv, const std::nothrow_t &) throw()93 void RT_EF_CDECL operator delete(void * pv, const std::nothrow_t &) RT_NO_THROW 90 94 { 91 95 rtR3MemFree("delete nothrow", RTMEMTYPE_DELETE, pv, ASMReturnAddress(), NULL, 0, NULL); … … 110 114 111 115 112 void * RT_EF_CDECL operator new[](RT_EF_SIZE_T cb, const std::nothrow_t &) throw()116 void * RT_EF_CDECL operator new[](RT_EF_SIZE_T cb, const std::nothrow_t &) RT_NO_THROW 113 117 { 114 118 void *pv = rtR3MemAlloc("new[] nothrow", RTMEMTYPE_NEW_ARRAY, cb, cb, NULL, ASMReturnAddress(), NULL, 0, NULL); … … 117 121 118 122 119 void RT_EF_CDECL operator delete[](void * pv) throw()123 void RT_EF_CDECL operator delete[](void * pv) RT_NO_THROW 120 124 { 121 125 rtR3MemFree("delete[]", RTMEMTYPE_DELETE_ARRAY, pv, ASMReturnAddress(), NULL, 0, NULL); … … 123 127 124 128 125 void RT_EF_CDECL operator delete[](void *pv, const std::nothrow_t &) throw()129 void RT_EF_CDECL operator delete[](void *pv, const std::nothrow_t &) RT_NO_THROW 126 130 { 127 131 rtR3MemFree("delete[] nothrow", RTMEMTYPE_DELETE_ARRAY, pv, ASMReturnAddress(), NULL, 0, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.