Skip to content

Commit

Permalink
closes gh-27
Browse files Browse the repository at this point in the history
  • Loading branch information
bvesco committed Mar 19, 2011
1 parent d6a7bea commit da21edd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions WDL/IPlug/Containers.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
#include "../wdlstring.h"
#include "../ptrlist.h"

#define FREE_NULL(p) {free(p);p=0;}
#define DELETE_NULL(p) {delete(p); p=0;}
#define FREE_NULL(p) {free(p); (p)=0;}
#define DELETE_NULL(p) {delete(p); (p)=0;}
#define DELETE_ARRAY(p) {delete[](p); (p)=0;}
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define BOUNDED(x,lo,hi) ((x) < (lo) ? (lo) : (x) > (hi) ? (hi) : (x))
Expand Down

0 comments on commit da21edd

Please sign in to comment.