Alchemy
Loading...
Searching...
No Matches

oam.h

Go to the documentation of this file.
1#ifndef ALCHEMY_OAM_H
2#define ALCHEMY_OAM_H
3
4/// @file
5/// OAM usage counts.
6
7#include "edition.h"
8#include "types.h"
9#include "static_assert.h"
10
11/// How many OAM entries are in use, and the most that may be.
12struct OamUsage {
13 u16 used; ///< not named by TBS code
14 u16 limit; ///< not named by TBS code
15};
16
17STATIC_ASSERT(sizeof(struct OamUsage) == 4);
18STATIC_ASSERT(offsetof(struct OamUsage, limit) == 2);
19
20extern struct OamUsage gOamUsage;
21
22#endif
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
struct OamUsage gOamUsage
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
How many OAM entries are in use, and the most that may be.
Definition oam.h:12
u16 used
not named by TBS code
Definition oam.h:13
u16 limit
not named by TBS code
Definition oam.h:14
The integer types, TRUE, UNUSED and the fixed-address macros.
unsigned short u16
Definition types.h:13