Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::memory::Delete Macro
C++
#define Delete(type,thing) for(type tmp=thing;Release((POINTER)(tmp)),0;)
Parameters 
Description 
type 
type of the variable 
thing 
the thing to actually release. 

A 'safe' release macro. casts the block to the type to release. Makes sure the pointer being released is the type specified.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!