Changeset e03d7b in git for omalloc/omallocClass.cc
- Timestamp:
- Apr 10, 2015, 2:26:57 PM (9 years ago)
- Branches:
- (u'spielwiese', '873fc1222e995d7cb33f79d8f1792ce418c8c72c')
- Children:
- aeb760bbbad0ff816c36fdb5a66d5481d76a769c
- Parents:
- 76f52597f7be2cdc6a83d6956f788e3bb342a2f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/omallocClass.cc
r76f525 re03d7b 13 13 #include <stdlib.h> 14 14 #include <omalloc/omallocClass.h> 15 16 /* We define those, so that our values of17 OM_TRACK and OM_CHECK are used */18 void* omallocClass::operator new ( size_t size )19 #ifndef __GNUC__20 throw (std::bad_alloc)21 #endif22 {23 void* addr;24 if (size==(size_t)0) size = 1;25 omTypeAlloc(void*, addr, size);26 return addr;27 }28 29 void omallocClass::operator delete ( void* block )30 #ifndef __GNUC__31 throw ()32 #endif33 {34 omfree( block );35 }36 15 37 16 void* omallocClass::operator new[] ( size_t size ) … … 76 55 { 77 56 void* addr; 78 if (size==(size_t)0) size = (size_t)1;79 57 omTypeAlloc(void*, addr, size); 80 58 return addr;
Note: See TracChangeset
for help on using the changeset viewer.