mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 06:06:43 +01:00
timeline: add TM_RunningOnly convienence macro
This commit is contained in:
parent
a4a1c356df
commit
b9774052eb
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@
|
||||||
type* result = malloc(sizeof(type)); \
|
type* result = malloc(sizeof(type)); \
|
||||||
*result = val;
|
*result = val;
|
||||||
|
|
||||||
|
#define TM_RunningOnly \
|
||||||
|
if (state != TM_ACTIONSTATE_RUNNING) return false;
|
||||||
|
|
||||||
/*! \brief State of the TM_Action. */
|
/*! \brief State of the TM_Action. */
|
||||||
enum TM_ActionState {
|
enum TM_ActionState {
|
||||||
TM_ACTIONSTATE_INIT,
|
TM_ACTIONSTATE_INIT,
|
||||||
|
|
Loading…
Reference in a new issue