MCPcopy Create free account
hub / github.com/bwapi/bwapi / execute

Method execute

bwapi/BWScriptEmulator/Return.cpp:8–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6IMPLEMENT(Return);
7
8bool 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}

Callers

nothing calls this directly

Calls 5

saveDebugMethod · 0.80
getOpcodeMethod · 0.80
retMethod · 0.80
killThreadMethod · 0.80
noretryMethod · 0.80

Tested by

no test coverage detected