NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
types.h
1#pragma once
2
3// Codewarrior-specific pragmas
4#ifdef __CWCC__
5#pragma cpp1x on
6#pragma gcc_extensions on
7#endif
8
9// Base types
10typedef unsigned char u8;
11typedef unsigned short u16;
12typedef unsigned int u32;
13typedef unsigned long long u64;
14typedef signed char s8;
15typedef signed short s16;
16typedef signed int s32;
17typedef signed long long s64;
18typedef float f32;
19typedef double f64;
20#ifdef __CWCC__
21 typedef unsigned long size_t;
22#endif
23typedef unsigned long ulong;
24typedef volatile s8 vs8;
25typedef volatile s16 vs16;
26typedef volatile s32 vs32;
27typedef volatile s64 vs64;
28typedef volatile u8 vu8;
29typedef volatile u16 vu16;
30typedef volatile u32 vu32;
31typedef volatile u64 vu64;
32typedef volatile f32 vf32;
33typedef volatile f64 vf64;
34
35// Macros
36#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
37#define BIT_FLAG(bit) ((bit) < 0 ? 0 : 1 << (bit))