This header file contains core definitions used by most of DeskLib.
#define UNUSED(x) ((x) = (x))
A simple macro to avoid compiler warnings when you don't actually use one of the parameters passed to a particular function.
Also useful for conditional compilation where one of the paths doesn't use a variable.
#define WORDALIGN(ADDR) (((ADDR) + 3) & (~3))
A simple macro that rounds an address up to the nearest word boundary.
#define MAX(x,y) ((x) > (y) ? (x) : (y))
#define MIN(x,y) ((x) < (y) ? (x) : (y))
Purpose: The usual definitions of MAX and MIN.
#define BOOL unsigned
#define FALSE 0
#define TRUE 1
#define ERROR 1
#define NOERROR 0
The structure of operating system errors.