mirror of
https://github.com/pmret/papermario.git
synced 2026-04-10 11:00:10 -04:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user