#include <stdio.h>
#include <
string.h>
extern "C"
{
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
}
int main(
void)
{
char buff[256];
int error;
lua_State *L = lua_open();
luaopen_base(L);
luaopen_table(L);
luaL_openlibs(L);
luaopen_string(L);
luaopen_math(L);
const char *buf = "print('hello')";
luaL_dostring(L,buf);
lua_close(L);
return 0;
}