#include #include #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; }