swissChili | d813792 | 2021-02-17 15:34:07 -0800 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | typedef unsigned char uchar; | ||||
4 | typedef unsigned short ushort; | ||||
5 | typedef unsigned int uint; | ||||
6 | typedef unsigned long ulong; | ||||
7 | |||||
swissChili | 825d46b | 2021-02-21 10:14:16 -0800 | [diff] [blame] | 8 | typedef unsigned long size_t; |
swissChili | 0b35bf2 | 2021-02-18 12:49:40 -0800 | [diff] [blame] | 9 | |
swissChili | e4f0199 | 2021-02-25 15:38:12 -0800 | [diff] [blame] | 10 | typedef _Bool bool; |
swissChili | 0b35bf2 | 2021-02-18 12:49:40 -0800 | [diff] [blame] | 11 | |
12 | enum | ||||
13 | { | ||||
14 | false = 0, | ||||
15 | true, | ||||
16 | }; | ||||
swissChili | 825d46b | 2021-02-21 10:14:16 -0800 | [diff] [blame] | 17 | |
swissChili | 19ef418 | 2021-02-21 17:45:51 -0800 | [diff] [blame] | 18 | #define NULL 0 |
swissChili | c2e62ed | 2021-03-10 17:04:18 -0800 | [diff] [blame] | 19 | #define MIN(a, b) ((a)>(b)?(b):(a)) |
20 | #define MAX(a, b) ((a)>(b)?(a):(b)) | ||||
swissChili | e20b79b | 2021-03-17 21:20:13 -0700 | [diff] [blame] | 21 | |
22 | // Coerce into 1 or 0 | ||||
23 | #define BOOL(a) (!(!(a))) |