Original Post
I'm just curious how I would go about turning this ever-so-useful DirectX macro into an inline function...
Thanks, appreciated!
-----------------
The Goblin (madgob@aol.com)
-----------------
"Before critisizing somebody, walk a mile in their shoes. That way, when you do critisize them, not only will you be a mile away, but you'll also have their shoes!"
Edited by - Goblin on August 7, 2001 2:12:04 PM
#define SAFE_RELEASE(p) { if ( (p) ) { (p)->Release(); (p) = 0; } }
|