Possible Duplicate:
Do-While and if-else statements in C/C++ macros
I have the following macros :
#define FREE1(x) do { free(x); x = NULL; } while (0)
#define FREE2(x) free(x); x = NULL
What is the difference between these macros?
Possible Duplicate:
Do-While and if-else statements in C/C++ macros
I have the following macros :
#define FREE1(x) do { free(x); x = NULL; } while (0)
#define FREE2(x) free(x); x = NULL
What is the difference between these macros?