| 578 | } |
| 579 | |
| 580 | ErrorCode StaticModule::_execute() { |
| 581 | ErrorCode code; |
| 582 | if (mResource->mModes.callBackMode == Interpreter::Session_Debug) { |
| 583 | auto globalExecutor = ExecutorScope::Current(); |
| 584 | auto debug = globalExecutor->getDebugTools(); |
| 585 | if (debug->after != nullptr && debug->before != nullptr) { |
| 586 | code = mSession->runWithCallBack(debug->before, debug->after); |
| 587 | } else { |
| 588 | code = mSession->run(); |
| 589 | } |
| 590 | } else { |
| 591 | code = mSession->run(); |
| 592 | } |
| 593 | return code; |
| 594 | } |
| 595 | |
| 596 | std::vector<Express::VARP> StaticModule::onForward(const std::vector<Express::VARP>& inputs) { |
| 597 |
nothing calls this directly
no test coverage detected