rendered paste body#define GAME_C#include "game.h"int init() /*{+{*/ { allegro_init(); g_lua = lua_open(); return(STATUS_MENU);}/*}_}*/int end_game() /*{+{*/ { printf("Exitting game gracefully\n"); return(STATUS_EXIT_LOOP);}int error_loop() /*{+{*/ { printf("Exitting game over an error\n"); return(STATUS_ERROR);}/*}_}*/int shutdown() /*{+{*/ { lua_close(g_lua); printf("Shutdown over\n"); switch(g_status) { case STATUS_ERROR: return(-1); case STATUS_EOG: case STATUS_EXIT_LOOP: return(0); default: return(0); } return(-2);}/*}_}*/int main(int argc,char * argv[]) /*{+{*/ { g_status = init(); do g_status = g_loops[g_status](); while(g_status < STATUS_EXIT_LOOP); exit(shutdown());}END_OF_MAIN()/*}_}*/