Alchemy
Loading...
Searching...
No Matches

b5_context.h

Go to the documentation of this file.
1#ifndef ALCHEMY_B5_CONTEXT_H
2#define ALCHEMY_B5_CONTEXT_H
3
4/// @file
5/// B5Context, the object context a battle routine reads; most of its fields are
6/// still unnamed.
7
8#include "edition.h"
9#include "types.h"
10#include "static_assert.h"
11
12/// The object context a battle routine reads; most of its fields are still
13/// unnamed.
14struct B5Context {
15 void *object;
24};
25
26STATIC_ASSERT(offsetof(struct B5Context, object) == 0x00);
27STATIC_ASSERT(offsetof(struct B5Context, word0c) == 0x0c);
28STATIC_ASSERT(offsetof(struct B5Context, word10) == 0x10);
29STATIC_ASSERT(offsetof(struct B5Context, suppressUpdates) == 0x2a);
30
31#endif
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
STATIC_ASSERT, a compile-time check that emits nothing.
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array.
#define offsetof(type, member)
Definition stddef.h:19
The object context a battle routine reads; most of its fields are still unnamed.
Definition b5_context.h:14
void * object
Definition b5_context.h:15
u8 padding04[8]
Definition b5_context.h:16
void * excluded24
Definition b5_context.h:21
s16 suppressUpdates
Definition b5_context.h:23
u8 padding28[2]
Definition b5_context.h:22
void * excluded20
Definition b5_context.h:20
u8 padding14[0x0c]
Definition b5_context.h:19
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14
signed short s16
Definition types.h:12
unsigned char u8
Definition types.h:11