#pragma once | |
typedef unsigned char uchar; | |
typedef unsigned short ushort; | |
typedef unsigned int uint; | |
typedef unsigned long ulong; | |
typedef unsigned long size_t; | |
typedef _Bool bool; | |
enum | |
{ | |
false = 0, | |
true, | |
}; | |
#define NULL 0 | |
#define MIN(a, b) ((a)>(b)?(b):(a)) | |
#define MAX(a, b) ((a)>(b)?(a):(b)) | |
// Coerce into 1 or 0 | |
#define BOOL(a) (!(!(a))) |