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

Method GetPC

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

Get current program pointer (position in bytecode)

Source from the content-addressed store, hash-verified

165 const RuntimeScript *GetRunningScript() const { return _current; }
166 // Get current program pointer (position in bytecode)
167 int GetPC() const { return _pc; }
168 // Get the script's execution position
169 void GetScriptPosition(ScriptPosition &script_pos) const;
170 // Gets the top entry of this instance's stack

Callers 3

debug_script_print_implFunction · 0.80
scriptDebugHookFunction · 0.80
TryGetLocalVariableFunction · 0.80

Calls

no outgoing calls

Tested by 1

TryGetLocalVariableFunction · 0.64