| 371 | } |
| 372 | |
| 373 | static RunScFuncResult PrepareTextScript(const RuntimeScript *script, const String &tsname) |
| 374 | { |
| 375 | assert(script); |
| 376 | cc_clear_error(); |
| 377 | if (scriptExecutor->IsBusy()) |
| 378 | { |
| 379 | cc_error("script is currently in execution"); |
| 380 | return kScFnRes_ScriptBusy; |
| 381 | } |
| 382 | if (!DoesScriptFunctionExist(script, tsname)) |
| 383 | { |
| 384 | cc_error("no such function in script"); |
| 385 | return kScFnRes_NotFound; |
| 386 | } |
| 387 | executingScripts.push(std::make_unique<ExecutingScript>(script)); |
| 388 | curExecScript = executingScripts.top().get(); |
| 389 | update_script_mouse_coords(); |
| 390 | inside_script++; |
| 391 | return kScFnRes_Done; |
| 392 | } |
| 393 | |
| 394 | void PostScriptProcessing(); |
| 395 |
no test coverage detected