KrisLibrary
1.0.0
|
Utilities commonly used throughout a program. More...
#include <algorithm>
Go to the source code of this file.
Macros | |
#define | SafeDelete(x) { if (x) delete x; x=NULL; } |
Delete a non-NULL pointer and set it to NULL. | |
#define | SafeArrayDelete(x) { if (x) delete [] x; x=NULL; } |
Delete a non-NULL pointer to an array and set it to NULL. | |
#define | SafeDeleteProc(x, proc) { if (x) proc(x); x=NULL; } |
Delete a non-NULL pointer, using the provided function, and set it to NULL. | |
#define | ArraySize(x) (sizeof(x)/sizeof(x[0])) |
Utilities commonly used throughout a program.
Many of these are here just to provide a cross-platform interface to non-standard build environments (e.g. windows)