diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/state.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c index 1d59ad7..0710127 100644 --- a/src/state.c +++ b/src/state.c @@ -132,8 +132,8 @@ StateType State_update(StateType type, memory *mem) { return next_state; } -bool State_reload(StateType type) { #ifdef DAW_BUILD_HOTRELOAD +bool State_reload(StateType type) { switch (type) { #define State(name) \ case (STATE_##name): { \ @@ -165,6 +165,8 @@ bool State_reload(StateType type) { default: exit(EXIT_FAILURE); } -#endif return true; } +#else +#define State_reload(_) true +#endif |
