sm64coopdx/text/define_courses.inc.c

36 lines
847 B
C
Raw Permalink Normal View History

2020-02-03 06:51:26 +01:00
#define COURSE_ACTS(id, name, a,b,c,d,e,f) \
static u8 GLUE2(COURSE_TABLE, _ ## id)[name] = { 0xFF };
2020-02-03 06:51:26 +01:00
#define SECRET_STAR(id, name) \
static u8 GLUE2(COURSE_TABLE, _ ## id)[name] = { 0xFF };
2020-02-03 06:51:26 +01:00
#define CASTLE_SECRET_STARS(str) \
static u8 GLUE2(COURSE_TABLE, _castle_secret_stars)[str] = { 0xFF };
2020-02-03 06:51:26 +01:00
#define EXTRA_TEXT(id, str)
#include "courses.h"
#undef COURSE_ACTS
#undef SECRET_STAR
#undef CASTLE_SECRET_STARS
#define COURSE_ACTS(id, name, a,b,c,d,e,f) GLUE2(COURSE_TABLE, _ ## id),
#define SECRET_STAR(id, name) GLUE2(COURSE_TABLE, _ ## id),
#define CASTLE_SECRET_STARS(str) GLUE2(COURSE_TABLE, _castle_secret_stars),
const u8* COURSE_TABLE[] = {
#include "courses.h"
NULL
};
const u8* GLUE2(COURSE_TABLE, _original)[] = {
2020-02-03 06:51:26 +01:00
#include "courses.h"
NULL
};
#undef COURSE_ACTS
#undef SECRET_STAR
#undef CASTLE_SECRET_STARS