24 lines
1.3 KiB
C
24 lines
1.3 KiB
C
|
<EFBFBD><EFBFBD>//
|
|||
|
// <EFBFBD>O)RK0<EFBFBD>0<EFBFBD>w<EFBFBD>0j0D0<EFBFBD>0<EFBFBD>0<EFBFBD>0_0a0
|
|||
|
//
|
|||
|
#ifndef __MACRO_INCLUDED__
|
|||
|
#define __MACRO_INCLUDED__
|
|||
|
|
|||
|
// Y͑|Ts0<EFBFBD>QW0<EFBFBD>[<EFBFBD>_<EFBFBD>0<EFBFBD>0<EFBFBD>0a0<EFBFBD>0<EFBFBD>0
|
|||
|
#define DELETEPTR(x) if(x) { delete x; x = NULL; }
|
|||
|
#define DELETEARR(x) if(x) { delete[] x; x = NULL; }
|
|||
|
#define RELEASE(x) if(x) { x->Release(); x=NULL; }
|
|||
|
#define FREE(x) if(x) { free(x); x=NULL; }
|
|||
|
#define FCLOSE(x) if(x) { fclose(x); x=NULL; }
|
|||
|
#define GDIDELETE(x) if(x) { ::DeleteObject(x); x=NULL; }
|
|||
|
#define CLOSEHANDLE(x) if(x) { ::CloseHandle(x); x = NULL; }
|
|||
|
|
|||
|
// ]0n0<EFBFBD>N
|
|||
|
#define ZEROMEMORY(p,s) ::memset( (p), 0, (s) )
|
|||
|
|
|||
|
// RECT<EFBFBD>i <EFBFBD>SO(u
|
|||
|
#define RCWIDTH(rc) ((rc).right-(rc).left)
|
|||
|
#define RCHEIGHT(rc) ((rc).bottom-(rc).top)
|
|||
|
|
|||
|
#endif // !__MACRO_INCLUDED__
|
|||
|
|