00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #ifndef __COMMON_H_ 00007 #define __COMMON_H_ 00008 00009 #define SAFE_DELETE(p) {if (p) {delete p; p = NULL;}} 00010 #define SAFE_DELETE_ARRAY(a) {if (a) {delete [] a; a = NULL;}} 00011 #define SAFE_RELEASE(p) {if (p) {p->Release (); p = NULL;}} 00012 00013 #define RIF(e) {if (FAILED (hr=(e))) return hr;} 00014 00015 #define Is9xME ((GetVersion () & 0x80000000) != 0) 00016 00017 #endif
1.5.6