#if !defined(MISC_HPP)
#define MISC_HPP

#define uint unsigned int

typedef int BOOL;
const int TRUE = 1, FALSE = 0;

// definition is local to the file in which it appears
#define LOCAL static
// member is instance-independent
#define CLASSMEMBER static

// returns number of elements in array AA of any type elements
#define ARRAY_LENGTH(AA) (sizeof(AA) / sizeof((AA)[0]))

#endif
