This commit is contained in:
Walzer 2010-09-01 05:56:36 +00:00
parent 820676ea28
commit 7bcb58ef78
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ THE SOFTWARE.
#define CCX_SAFE_DELETE(p) if(p) { delete p; p=NULL; }
#define CCX_SAFE_FREE(p) if(p) { free(p); p=NULL; }
#define CCX_SAFE_RELEASE(p) if(p) { p->release(); p = NULL; }
#define CCX_SAFE_RELEASE if(p) { p->release(); }
#define CCX_SAFE_RELEASE_NULL(p) if(p) { p->release(); p = NULL; }
#define CCX_SAFE_RETAIN(p) if(p) { p->retain(); }
#define CCX_BREAK_IF(cond) if(cond) break;