mirror of https://github.com/axmolengine/axmol.git
This commit is contained in:
parent
820676ea28
commit
7bcb58ef78
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue