Commit c87cfdcc authored by deuce's avatar deuce
Browse files

Add FREE_AND_NULL macro.

parent 6890b49f
......@@ -104,6 +104,9 @@
#define LFREE free
#define FREE free
#endif
#if !defined(FREE_AND_NULL)
#define FREE_AND_NULL(x) if(x!=NULL) { FREE(x); x=NULL; }
#endif
#if !defined(MAX_PATH) /* maximum path length */
#if defined MAXPATHLEN
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment