summaryrefslogtreecommitdiff
path: root/soh/src/code/z_effect_soft_sprite_dlftbls.c
blob: 3a090041ecd5586cd23c04ec9c054c1a6bc3bcbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "global.h"

// Linker symbol declarations (used in the table below)
#define DEFINE_EFFECT_SS(name, _1) DECLARE_OVERLAY_SEGMENT(name)
#define DEFINE_EFFECT_SS_UNSET(_0)

#include "tables/effect_ss_table.h"

#undef DEFINE_EFFECT_SS
#undef DEFINE_EFFECT_SS_UNSET

// Init Vars declarations (also used in the table below)
#define DEFINE_EFFECT_SS(name, _1) extern EffectSsInit name##_InitVars;
#define DEFINE_EFFECT_SS_UNSET(_0)

#include "tables/effect_ss_table.h"

#undef DEFINE_EFFECT_SS
#undef DEFINE_EFFECT_SS_UNSET

// Effect SS Overlay Table definition
//#define DEFINE_EFFECT_SS(name, _1)         \
//    {                                      \
//        (uintptr_t)_ovl_##name##SegmentRomStart, \
//        (uintptr_t)_ovl_##name##SegmentRomEnd,   \
//        _ovl_##name##SegmentStart,         \
//        _ovl_##name##SegmentEnd,           \
//        NULL,                              \
//        &name##_InitVars,                  \
//        1,                                 \
//    },

#define DEFINE_EFFECT_SS(name, _1)         \
    {                                      \
        (uintptr_t)0, \
        (uintptr_t)0,   \
        0,         \
        0,           \
        NULL,                              \
        &name##_InitVars,                  \
        1,                                 \
    },

#define DEFINE_EFFECT_SS_UNSET(_0) { 0 },

EffectSsOverlay gEffectSsOverlayTable[] = {
#include "tables/effect_ss_table.h"
};

#undef DEFINE_EFFECT_SS
#undef DEFINE_EFFECT_SS_UNSET