MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / UpdateCallstack

Method UpdateCallstack

neo/tools/debugger/DebuggerWindow.cpp:640–659  ·  view source on GitHub ↗

================ rvDebuggerWindow::UpdateCallstack Updates the contents of teh callastack ================ */

Source from the content-addressed store, hash-verified

638================
639*/
640void rvDebuggerWindow::UpdateCallstack ( void )
641{
642 LVITEM item;
643 ListView_DeleteAllItems ( mWndCallstack );
644 ZeroMemory ( &item, sizeof(item) );
645 item.mask = LVIF_TEXT|LVIF_IMAGE;
646
647 for ( int i = 0; i < mClient->GetCallstack().Num(); i ++ )
648 {
649 rvDebuggerCallstack* entry = mClient->GetCallstack()[i];
650 item.iItem = ListView_GetItemCount ( mWndCallstack );
651 item.pszText = "";
652 item.iImage = (i == mCurrentStackDepth) ? 1 : 0;
653 ListView_InsertItem ( mWndCallstack, &item );
654
655 ListView_SetItemText ( mWndCallstack, item.iItem, 1, (LPSTR)entry->mFunction.c_str() );
656 ListView_SetItemText ( mWndCallstack, item.iItem, 2, va("%d", entry->mLineNumber ) );
657 ListView_SetItemText ( mWndCallstack, item.iItem, 3, (LPSTR)entry->mFilename.c_str() );
658 }
659}
660
661void rvDebuggerWindow::UpdateScriptList(void)
662{

Callers 1

WndProcMethod · 0.80

Calls 4

vaFunction · 0.85
NumMethod · 0.45
GetCallstackMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected