mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 05:55:46 +01:00
24 lines
372 B
C
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;
|
|
}
|