Isle
Loading...
Searching...
No Matches
decomp.h
Go to the documentation of this file.
1#ifndef DECOMP_H
2#define DECOMP_H
3
4#ifndef NDEBUG
5// Disable size assertions for debug builds because the sizes differ between debug and release builds.
6// The release LEGO1.DLL is what we ultimately want to decompile, so this is what we assert against.
7#undef ENABLE_DECOMP_ASSERTS
8#endif
9
10#if defined(ENABLE_DECOMP_ASSERTS)
11#define DECOMP_STATIC_ASSERT(V) \
12 namespace \
13 { \
14 typedef int foo[(V) ? 1 : -1]; \
15 }
16#define DECOMP_SIZE_ASSERT(T, S) DECOMP_STATIC_ASSERT(sizeof(T) == S)
17#else
18#define DECOMP_STATIC_ASSERT(V)
19#define DECOMP_SIZE_ASSERT(T, S)
20#endif
21
22#ifndef sizeOfArray
23#define sizeOfArray(arr) (sizeof(arr) / sizeof(arr[0]))
24#endif
25
26typedef unsigned char undefined;
27typedef unsigned short undefined2;
28typedef unsigned int undefined4;
29
30#endif // DECOMP_H
unsigned short undefined2
Definition: decomp.h:27
unsigned int undefined4
Definition: decomp.h:28
unsigned char undefined
Definition: decomp.h:26