| 6 | IMPLEMENT(Return); |
| 7 | |
| 8 | bool Return::execute(aithread &thread) const |
| 9 | { |
| 10 | thread.saveDebug(Text::Green, this->getOpcode()); |
| 11 | bool result = thread.ret(); |
| 12 | |
| 13 | // Error handling, kill the script if the callstack is empty |
| 14 | if ( !result ) |
| 15 | { |
| 16 | thread.killThread(); |
| 17 | thread.noretry(); |
| 18 | return false; |
| 19 | } |
| 20 | |
| 21 | // Success |
| 22 | return true; |
| 23 | } |
nothing calls this directly
no test coverage detected