aboutsummaryrefslogtreecommitdiff
path: root/types.h
blob: 1c84c74832b6f8471ea87ae802aa2fcb87fc3bae (plain) (blame)
1
2
3
4
5
6
7
8
9
10

#include <stddef.h>
#include <stdint.h>

typedef ptrdiff_t size;
typedef char byte;
typedef uintptr_t uptr;

#define sizeof(x) (size)sizeof(x)
#define countof(a) (sizeof(a) / sizeof(*(a)))
#define lengthof(s) (countof(s) - 1)