Files
HackerSM64/text/define_courses.inc.c
arthurtilly 219f4683f7 ASCII/UTF-8 Text and Full Multilang Support (#775)
Co-authored-by: Axollyon <20480418+Axollyon@users.noreply.github.com>
Co-authored-by: Reonu <danileon95@gmail.com>
Co-authored-by: Arceveti <arceveti@gmail.com>
Co-authored-by: Gregory Heskett <gheskett@gmail.com>
2024-03-18 21:22:04 +00:00

34 lines
886 B
C

#undef COURSE_ACTS
#define COURSE_ACTS(id, name, a,b,c,d,e,f) \
static const char GLUE2(COURSE_NAME_TABLE, _ ## id)[] = { name };
#undef SECRET_STAR
#define SECRET_STAR(id, name) \
static const char GLUE2(COURSE_NAME_TABLE, _ ## id)[] = { name };
#undef CASTLE_SECRET_STARS
#define CASTLE_SECRET_STARS(str) \
static const char GLUE2(COURSE_NAME_TABLE, _castle_secret_stars)[] = { str };
#define EXTRA_TEXT(id, str)
#include COURSE_FILE
#undef COURSE_ACTS
#undef SECRET_STAR
#undef CASTLE_SECRET_STARS
#define COURSE_ACTS(id, name, a,b,c,d,e,f) GLUE2(COURSE_NAME_TABLE, _ ## id),
#define SECRET_STAR(id, name) GLUE2(COURSE_NAME_TABLE, _ ## id),
#define CASTLE_SECRET_STARS(str) GLUE2(COURSE_NAME_TABLE, _castle_secret_stars),
const char *const COURSE_NAME_TABLE[] = {
#include COURSE_FILE
NULL
};
#undef COURSE_ACTS
#undef SECRET_STAR
#undef CASTLE_SECRET_STARS