Original Post
I''ve checked reference books. I''ve checked Online Help. I''ve searched about 18% of the net (or at least it feels like it...)
I want to make a macro that looks like this...
#define DelPtr(ptr) {delete ptr; ptr = NULL;}
Now, that is what I originally thought I could do. Now, I''ve reconsidered, and I think that this will work...
_inline void DelPtr(void &*ptr) {
delete ptr;
ptr = NULL;
}
Could anyone tell me how to do this? I want to make a quick little inline or macro function that will do this (Delete and NULL a pointer), but neither of these attempts work with my compiler!
I''m using Borland''s 5.5 32-bit compiler, if that makes a difference...