state_title_screen & camera funcs (#650)

* state_title_screen funcz

* camz

* line

* PR comments and matches (thanks Unnunu & Wiseguy)

* enumz

* gloop
This commit is contained in:
Ethan Roseman
2022-02-19 09:39:34 -05:00
committed by GitHub
parent d02e72e78f
commit e98ea95df4
71 changed files with 791 additions and 1552 deletions

View File

@@ -130,6 +130,7 @@
/// This macro expands to the given opcode and argv, with argc calculated automatically.
#ifndef PERMUTER
#ifndef M2CTX
#define EVT_CMD(opcode, argv...) \
opcode, \
(sizeof((Bytecode[]){argv})/sizeof(Bytecode)), \
@@ -141,6 +142,13 @@
0, \
##argv
#endif
#else
// This definition that passes in 0 for the number of args is used for pycparser since it can't handle varargs
#define EVT_CMD(opcode, argv...) \
opcode, \
0, \
##argv
#endif
/// Signals the end of EVT script data. A script missing this will likely crash on load.
#define EVT_END EVT_CMD(EVT_OP_END),