| 519 | } |
| 520 | |
| 521 | Expect<std::vector<std::pair<ComponentValVariant, ComponentValType>>> |
| 522 | VM::unsafeExecuteComponent(std::string_view Func, |
| 523 | Span<const ComponentValVariant> Params, |
| 524 | Span<const ComponentValType> ParamTypes) { |
| 525 | if (unlikely(!ActiveCompInst)) { |
| 526 | spdlog::error(ErrCode::Value::WrongInstanceAddress); |
| 527 | spdlog::error(ErrInfo::InfoExecuting("When invoking"sv, Func)); |
| 528 | return Unexpect(ErrCode::Value::WrongInstanceAddress); |
| 529 | } |
| 530 | return unsafeExecuteComponent(ActiveCompInst.get(), Func, Params, ParamTypes); |
| 531 | } |
| 532 | |
| 533 | Expect<std::vector<std::pair<ComponentValVariant, ComponentValType>>> |
| 534 | VM::unsafeExecuteComponent(std::string_view CompName, std::string_view Func, |
nothing calls this directly
no test coverage detected