bool dofile(lua_State* L,const char* str) { int err = luaL_loadfile(L,str); if (err == LUA_ERRSYNTAX) { cout<<"Syntax error in ["<