MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / LuaError

Function LuaError

emmy_debugger/src/emmy_facade.cpp:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83#endif
84
85int 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
94bool EmmyFacade::TcpListen(lua_State *L, const std::string &host, int port, std::string &err) {
95 Destroy();

Callers

nothing calls this directly

Calls 3

lua_getglobalFunction · 0.50
lua_pushstringFunction · 0.50
lua_callFunction · 0.50

Tested by

no test coverage detected