| 83 | #endif |
| 84 | |
| 85 | int LuaError(lua_State *L) { |
| 86 | std::string msg = lua_tostring(L, 1); |
| 87 | msg = "[Emmy]" + msg; |
| 88 | lua_getglobal(L, "error"); |
| 89 | lua_pushstring(L, msg.c_str()); |
| 90 | lua_call(L, 1, 0); |
| 91 | return 0; |
| 92 | } |
| 93 | |
| 94 | bool EmmyFacade::TcpListen(lua_State *L, const std::string &host, int port, std::string &err) { |
| 95 | Destroy(); |
nothing calls this directly
no test coverage detected