| 73 | bool LuaIsUserFunction(lua_State* L, CallInfo* ci); |
| 74 | |
| 75 | std::optional<STDString> FindLuaSourcePath(STDString const& name) |
| 76 | { |
| 77 | if (name.starts_with("builtin://") && !gExtender->GetConfig().LuaBuiltinResourceDirectory.empty()) { |
| 78 | return ToUTF8(gExtender->GetConfig().LuaBuiltinResourceDirectory) + "/" + name.substr(10); |
| 79 | } |
| 80 | |
| 81 | if (gExtender->GetServer().HasExtensionState()) { |
| 82 | auto const& files = gExtender->GetServer().GetExtensionState().GetLoadedFileFullPaths(); |
| 83 | auto it = files.find(name); |
| 84 | if (it != files.end()) { |
| 85 | return it->second; |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | if (gExtender->GetClient().HasExtensionState()) { |
| 90 | auto const& files = gExtender->GetClient().GetExtensionState().GetLoadedFileFullPaths(); |
| 91 | auto it = files.find(name); |
| 92 | if (it != files.end()) { |
| 93 | return it->second; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | return {}; |
| 98 | } |
| 99 | |
| 100 | void DebugMessageHandler::SendBreakpointTriggered(DbgContext context, BkBreakpointTriggered_Reason reason, |
| 101 | lua_State* L, char const* message) |
no test coverage detected