rendered paste body//General#include <stdio.h>#include <iostream>#include <string.h>//Luaextern "C" {#include "lua.h"#include "lauxlib.h"#include "lualib.h"}//SDL#include <SDL.h>#include <SDL_main.h>#include <SDL_image.h>#include <SDL_mixer.h>#include <SDL_ttf.h>#pragma comment(lib,"SDL.lib")#pragma comment(lib,"SDLmain.lib")#pragma comment(lib,"SDL_image.lib")#pragma comment(lib,"SDL_mixer.lib")#pragma comment(lib,"SDL_ttf.lib")using namespace std;static int ct(lua_State *L){ cout << "Hello World!" << endl; return 0;}int main(int argc, char* argv[]){ lua_State *L = luaL_newstate(); L = lua_open(); luaL_openlibs(L); lua_register(L, "ct", ct); luaL_dofile(L, "test.lua"); lua_close(L); cin.get();return 0;}