Changes in / [d7a10af:48f6252]
- File:
-
- 1 edited
-
libcfa/src/stdlib.hfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/stdlib.hfa
rd7a10af r48f6252 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Nov 12 20:58:48202013 // Update Count : 52 012 // Last Modified On : Tue Dec 8 18:27:22 2020 13 // Update Count : 524 14 14 // 15 15 … … 268 268 static inline forall( dtype T | { void ^?{}( T & ); } ) 269 269 void delete( T * ptr ) { 270 if ( ptr ) { // ignore null 270 // special case for 0-sized object => always call destructor 271 if ( ptr || sizeof(ptr) == 0 ) { // ignore null but not 0-sized objects 271 272 ^(*ptr){}; // run destructor 272 free( ptr );273 273 } // if 274 free( ptr ); 274 275 } // delete 275 276
Note:
See TracChangeset
for help on using the changeset viewer.