21#ifndef OPENSNES_TYPES_H
22#define OPENSNES_TYPES_H
44typedef signed char s8;
47typedef unsigned char u8;
50typedef signed short s16;
53typedef unsigned short u16;
77typedef signed long s32;
79typedef signed int s32;
88typedef unsigned long u32;
90typedef unsigned int u32;
147#define RAM_CODE __ramcode
189#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L
217#define NULL ((void*)0)
235#define BIT(n) (1u << (n))
242#define LO_BYTE(x) ((u8)((x) & 0xFF))
249#define HI_BYTE(x) ((u8)(((x) >> 8) & 0xFF))
257#define MAKE_WORD(lo, hi) ((u16)(((u8)(hi) << 8) | (u8)(lo)))
262#define MIN(a, b) (((a) < (b)) ? (a) : (b))
267#define MAX(a, b) (((a) > (b)) ? (a) : (b))
275#define CLAMP(x, lo, hi) (((x) < (lo)) ? (lo) : (((x) > (hi)) ? (hi) : (x)))
282#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
320#define OPENSNES_DEPRECATED(msg) __attribute__((deprecated(msg)))
unsigned char bool
Definition types.h:190
void(* VoidFn)(void)
Void function taking no arguments (the generic name; a header that wants to say what the function is ...
Definition types.h:299
signed int s32
32-bit signed integer (-2147483648 to 2147483647)
Definition types.h:79
unsigned int u32
32-bit unsigned integer (0 to 4294967295)
Definition types.h:90
signed char s8
8-bit signed integer (-128 to 127)
Definition types.h:44
signed short s16
16-bit signed integer (-32768 to 32767)
Definition types.h:50
unsigned short u16
16-bit unsigned integer (0 to 65535)
Definition types.h:53
unsigned char u8
8-bit unsigned integer (0 to 255)
Definition types.h:47
volatile s8 vs8
Definition types.h:155
volatile u8 vu8
Definition types.h:152
volatile u16 vu16
Definition types.h:153
volatile s32 vs32
Definition types.h:157
volatile s16 vs16
Definition types.h:156
volatile u32 vu32
Definition types.h:154