timeline: capitalise TM_ACTION macro to prevent confusion with function declaration

This commit is contained in:
Sebastian Krzyszkowiak 2018-06-30 16:37:43 +02:00
parent c7fac39b79
commit 4b4e6cc023
2 changed files with 2 additions and 2 deletions

View file

@ -238,7 +238,7 @@ SYMBOL_EXPORT struct TM_Action* TM_AddNamedBackgroundAction(struct Timeline* tim
} }
/*! \brief Predefined action used by TM_AddQueuedBackgroundAction */ /*! \brief Predefined action used by TM_AddQueuedBackgroundAction */
static TM_Action(TM_RunInBackground) { static TM_ACTION(TM_RunInBackground) {
int* delay = TM_Arg(1); int* delay = TM_Arg(1);
char* name = TM_Arg(2); char* name = TM_Arg(2);
struct TM_Arguments* arguments = TM_Arg(3); struct TM_Arguments* arguments = TM_Arg(3);

View file

@ -133,6 +133,6 @@ bool TM_IsBackgroundEmpty(struct Timeline* timeline);
#define TM_Arg(n) TM_GetArg(action->arguments, n) #define TM_Arg(n) TM_GetArg(action->arguments, n)
/*! \brief Macro for easy timeline action definition. */ /*! \brief Macro for easy timeline action definition. */
#define TM_Action(name) bool name(struct Game* game, struct GamestateResources* data, struct TM_Action* action) #define TM_ACTION(name) bool name(struct Game* game, struct GamestateResources* data, struct TM_Action* action)
#endif #endif