mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-03-21 18:04:50 -05:00
19 lines
494 B
C
19 lines
494 B
C
#ifndef GUARD_BATTLE_ANIM_INTERNAL_H
|
|
#define GUARD_BATTLE_ANIM_INTERNAL_H
|
|
|
|
/* CMD_ARGS provides a way to locally name the members of gBattleAnimArgs.
|
|
*
|
|
* For example:
|
|
* {
|
|
* CMD_ARGS(x, y);
|
|
* // cmd->x is gBattleAnimArgs[0] and cmd->y is gBattleAnimArgs[1]
|
|
* } */
|
|
#if MODERN
|
|
#define CMD_ARGS(...) struct { s16 __VA_ARGS__; } *cmd = (void *)gBattleAnimArgs
|
|
#else
|
|
#define CMD_ARGS(...) struct CMD_ARGS { s16 __VA_ARGS__; }
|
|
#define cmd ((struct CMD_ARGS *)gBattleAnimArgs)
|
|
#endif
|
|
|
|
#endif
|