Are there any good reasons (except "macros are evil", maybe) NOT to use the following macros ?
#define DELETE( ptr )
if (ptr != NULL)
{
delete ptr;
ptr = NULL;
}
#define DELETE_TABLE( ptr )
if (ptr != NULL)
{
delete[] ptr;
ptr = NULL;
}
See Question&Answers more detail:os