move applcation callback declarations to game_api.h to ease warnings

This commit is contained in:
veclav talica 2024-07-30 18:15:31 +03:00
parent 0b215acbdf
commit 7bfcb26352
2 changed files with 4 additions and 7 deletions

View File

@ -8,7 +8,8 @@
#include "audio.h"
#include "util.h"
#include <SDL2/SDL.h>
/* application provided */
extern void game_tick(void);
extern void game_end(void);
#endif

View File

@ -3,6 +3,7 @@
#include "input.h"
#include "util.h"
#include "textures.h"
#include "game_api.h"
#include "audio/internal_api.h"
#include <SDL2/SDL.h>
@ -19,11 +20,6 @@
#include <limits.h>
/* application provided */
extern void game_tick(void);
extern void game_end(void);
static void poll_events(void) {
SDL_Event e;