Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
weak_bss_1109_to_1009.h
Go to the documentation of this file.
1
#ifndef WEAK_BSS_1109_TO_1009_H
2
#define WEAK_BSS_1109_TO_1009_H
3
4
// Fake header.
5
// These are some kind of weak objects that get included in the .bss sections of several TUs.
6
// They each have size 1, and alignment 1 in TWW's debug maps, but alignment 4 in the non-debug maps.
7
// Their true source is currently unknown, so include this header in TUs that need them to match for now.
8
9
// A possible origin for one of these could be the constructor of TFunctionValueAttribute_refer in
10
// functionvalue.h. That constructor includes `JGadget::TAllocator<void*>()` in it, which produces
11
// one weak bss object that has the correct size and alignment. However, we need 16 of them, while
12
// that only creates one.
13
14
#include "
JSystem/JStudio/JStudio/functionvalue.h
"
// IWYU pragma: keep
15
16
// They each have size 1, and alignment 1 in TWW's debug maps, but alignment 4 in the non-debug maps.
17
static
inline
void
dummy_bss_1009_to_1109
() {
18
// JGadget::TAllocator<void*>(); // @1109 // Already covered by TFunctionValueAttribute_refer's ctor
19
JGadget::TAllocator<void*>
();
// @1107
20
JGadget::TAllocator<void*>
();
// @1105
21
JGadget::TAllocator<void*>
();
// @1104
22
JGadget::TAllocator<void*>
();
// @1099
23
JGadget::TAllocator<void*>
();
// @1097
24
JGadget::TAllocator<void*>
();
// @1095
25
JGadget::TAllocator<void*>
();
// @1094
26
JGadget::TAllocator<void*>
();
// @1057
27
JGadget::TAllocator<void*>
();
// @1055
28
JGadget::TAllocator<void*>
();
// @1053
29
JGadget::TAllocator<void*>
();
// @1052
30
JGadget::TAllocator<void*>
();
// @1014
31
JGadget::TAllocator<void*>
();
// @1012
32
JGadget::TAllocator<void*>
();
// @1010
33
JGadget::TAllocator<void*>
();
// @1009
34
}
35
36
#endif
// WEAK_BSS_1109_TO_1009_H
functionvalue.h
JGadget::TAllocator
Definition
std-memory.h:8
dummy_bss_1009_to_1109
static void dummy_bss_1009_to_1109()
Definition
weak_bss_1109_to_1009.h:17
include
weak_bss_1109_to_1009.h
Generated by
1.12.0