diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-05-27 19:13:02 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-05-27 19:13:02 +0100 |
commit | 420ac2c8f2307ddcbe551972544bbe11f05ee7ff (patch) | |
tree | 70748bd36a378f3a44ccb720e2776030eac956f2 /game/src/game.h | |
parent | 0b3ba3e708899145296e3b6c1496ff87efe6a6c7 (diff) | |
download | ubox-msx-lib-420ac2c8f2307ddcbe551972544bbe11f05ee7ff.tar.gz ubox-msx-lib-420ac2c8f2307ddcbe551972544bbe11f05ee7ff.zip |
Avoid function declarator with no prototype errors
This is for SDCC 4.4.0 at least.
Diffstat (limited to 'game/src/game.h')
-rw-r--r-- | game/src/game.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/game/src/game.h b/game/src/game.h index 5f5d603..1354522 100644 --- a/game/src/game.h +++ b/game/src/game.h @@ -80,16 +80,16 @@ struct entity uint8_t flags; uint8_t delay; uint8_t frame; - void (*update)(); + void (*update)(void); }; -void run_game(); +void run_game(void); -void update_player(); -void update_enemy(); +void update_player(void); +void update_enemy(void); -void draw_map(); -void draw_hud(); +void draw_map(void); +void draw_hud(void); void erase_battery(uint8_t x, uint8_t y); |