MCPcopy Create free account
hub / github.com/Tencent/UnLua / GetMessage

Function GetMessage

Plugins/UnLua/Source/UnLua/Private/UnLuaLib.cpp:12–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 static const char* PACKAGE_PATH_KEY = "PackagePath";
11
12 static FString GetMessage(lua_State* L)
13 {
14 const auto ArgCount = lua_gettop(L);
15 FString Message;
16 if (!lua_checkstack(L, ArgCount))
17 {
18 luaL_error(L, "too many arguments, stack overflow");
19 return Message;
20 }
21 for (int ArgIndex = 1; ArgIndex <= ArgCount; ArgIndex++)
22 {
23 if (ArgIndex > 1)
24 Message += "\t";
25 Message += UTF8_TO_TCHAR(luaL_tolstring(L, ArgIndex, NULL));
26 }
27 return Message;
28 }
29
30 static int LogInfo(lua_State* L)
31 {

Callers 3

LogInfoFunction · 0.85
LogWarnFunction · 0.85
LogErrorFunction · 0.85

Calls 4

lua_gettopFunction · 0.85
lua_checkstackFunction · 0.85
luaL_errorFunction · 0.85
luaL_tolstringFunction · 0.85

Tested by

no test coverage detected