timeline: add TM_RunningOnly convienence macro

This commit is contained in:
Sebastian Krzyszkowiak 2018-06-29 23:00:58 +02:00
parent a4a1c356df
commit b9774052eb

View file

@ -27,6 +27,9 @@
type* result = malloc(sizeof(type)); \
*result = val;
#define TM_RunningOnly \
if (state != TM_ACTIONSTATE_RUNNING) return false;
/*! \brief State of the TM_Action. */
enum TM_ActionState {
TM_ACTIONSTATE_INIT,