MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / GetCallsStack

Method GetCallsStack

Code/CryEngine/CryScriptSystem/ScriptSystem.cpp:412–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412IScriptTable* CScriptSystem::GetCallsStack()
413{
414 std::vector<SLuaStackEntry> stack;
415
416 IScriptTable* pCallsStack = CreateTable();
417 assert(pCallsStack);
418
419 pCallsStack->AddRef();
420 GetCallStack(stack);
421
422 for (size_t i = 0; i < stack.size(); ++i)
423 {
424 SmartScriptTable pEntry(this);
425
426 pEntry->SetValue("description", stack[i].description.c_str());
427 pEntry->SetValue("line", stack[i].line);
428 pEntry->SetValue("sourcefile", stack[i].source.c_str());
429
430 pCallsStack->PushBack(pEntry);
431 }
432 return pCallsStack;
433}
434
435void CScriptSystem::DumpCallStack()
436{

Callers

nothing calls this directly

Calls 5

AddRefMethod · 0.45
sizeMethod · 0.45
SetValueMethod · 0.45
c_strMethod · 0.45
PushBackMethod · 0.45

Tested by

no test coverage detected