#include <lua.h>
#include <lualib.h>
/* luaL_newstate() is declared in lauxlib.h in Lua >= 5.1
* and is needed to correct "implicit declaration" warnings.
*/
#if LUA_VERSION_NUM >= 501
#include <lauxlib.h>
#endif
struct script_state
{
lua_State* state;