Files
tetris_clone/src/main.c
Quinn 937ecedfe3 implement new code, and remove deprecated old code. Overal optimisation.
this code is currently broken, but this'll be fixed in a subsequent
commit
2025-06-25 16:58:58 +02:00

24 lines
372 B
C

#include <SDL.h>
#include <stdlib.h>
#include "error.h"
#include "game/game.h"
#include "io/window.h"
static void stop(void) {
debug("stopping...", );
window_close();
SDL_Quit();
}
// entry-point of the application
int main(int argc, char** argv) {
(void)argc, (void)argv;
// register stop as exit function
atexit(stop);
window_open(game_init());
return 0;
}