Changeset 751 in dev for trunk/ab5.0/abdev/ab_common/src/Environment.cpp
- Timestamp:
- Sep 24, 2008, 2:36:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/src/Environment.cpp
r719 r751 35 35 throw; 36 36 } 37 38 void* operator new( std::size_t n ) 39 { 40 if ( void* p = dlmalloc(n) ){ 41 return p; 42 } 43 else{ 44 throw std::bad_alloc(); 45 } 46 } 47 48 void* operator new[]( std::size_t n ) 49 { 50 return ::operator new( n ); 51 } 52 53 void operator delete( void* p ) 54 { 55 dlfree( p ); 56 } 57 58 void operator delete[]( void* p ) 59 { 60 ::operator delete( p ); 61 }
Note:
See TracChangeset
for help on using the changeset viewer.