MCPcopy Create free account
hub / github.com/beefytech/Beef / GetFrame

Method GetFrame

IDEHelper/Compiler/CeDebugger.cpp:840–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840CeFrame* CeDebugger::GetFrame(int callStackIdx)
841{
842 auto ceContext = mCeMachine->mCurContext;
843 if (ceContext == NULL)
844 return NULL;
845
846 if ((callStackIdx == -1) && (!ceContext->mCallStack.IsEmpty()))
847 return &ceContext->mCallStack.back();
848
849 if (callStackIdx < mDbgCallStack.mSize)
850 {
851 int frameIdx = mDbgCallStack[callStackIdx].mFrameIdx;
852 if (frameIdx < 0)
853 return NULL;
854 auto ceFrame = &ceContext->mCallStack[mDbgCallStack[callStackIdx].mFrameIdx];
855 return ceFrame;
856 }
857 return NULL;
858}
859
860String CeDebugger::GetAutocompleteOutput(BfAutoComplete& autoComplete)
861{

Callers 1

EvaluateInContextMethod · 0.80

Calls 2

IsEmptyMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected