1 /*
2 
3 	Framework - PtrMacro.h
4 	File Version 1.0.000
5 	Various pointer related macros
6 
7 */
8 
9 #ifndef _PTRMACRO_H_
10 #define _PTRMACRO_H_
11 
12 #ifndef NULL
13 #define NULL 0
14 #endif
15 
16 #define FREEPTR(p)		\
17 	if((p) != NULL)		\
18 	{					\
19 		free((p));		\
20 		(p) = NULL;		\
21 	}
22 
23 #define DELETEPTR(p)	\
24 	if((p) != NULL)		\
25 	{					\
26 		delete (p);		\
27 		(p) = NULL;		\
28 	}
29 
30 #endif
31