MCPcopy Create free account
hub / github.com/adventuregamestudio/ags / GetReturnValue

Method GetReturnValue

Engine/script/scriptexecutor.h:173–173  ·  view source on GitHub ↗

Get latest return value

Source from the content-addressed store, hash-verified

171 const RuntimeScriptValue *GetCurrentStack() const { return _registers[SREG_SP].RValue; }
172 // Get latest return value
173 int GetReturnValue() const { return _returnValue; }
174 // FIXME: this is a hack, required for dialog script; redo this later!
175 void SetReturnValue(int val) { _returnValue = val; }
176

Callers 2

RunScriptFunctionFunction · 0.80
run_dialog_scriptFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected