| 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 | { |
no test coverage detected