Changeset 751 in dev for trunk/ab5.0/abdev/ab_common
- Timestamp:
- Sep 24, 2008, 2:36:26 AM (16 years ago)
- Location:
- trunk/ab5.0/abdev/ab_common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/ab_common.vcproj
r750 r751 282 282 RelativePath=".\src\Environment.cpp" 283 283 > 284 </File> 285 <File 286 RelativePath="..\malloc.c" 287 > 288 <FileConfiguration 289 Name="Debug(x86)|Win32" 290 > 291 <Tool 292 Name="VCCLCompilerTool" 293 PreprocessorDefinitions="USE_DL_PREFIX" 294 UsePrecompiledHeader="0" 295 /> 296 </FileConfiguration> 297 <FileConfiguration 298 Name="Release(x86)|Win32" 299 > 300 <Tool 301 Name="VCCLCompilerTool" 302 Optimization="3" 303 PreprocessorDefinitions="USE_DL_PREFIX" 304 UsePrecompiledHeader="0" 305 /> 306 </FileConfiguration> 307 <FileConfiguration 308 Name="Debug(x64)|Win32" 309 > 310 <Tool 311 Name="VCCLCompilerTool" 312 PreprocessorDefinitions="USE_DL_PREFIX" 313 UsePrecompiledHeader="0" 314 /> 315 </FileConfiguration> 316 <FileConfiguration 317 Name="Release(x64)|Win32" 318 > 319 <Tool 320 Name="VCCLCompilerTool" 321 PreprocessorDefinitions="USE_DL_PREFIX" 322 UsePrecompiledHeader="0" 323 /> 324 </FileConfiguration> 284 325 </File> 285 326 <File -
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.