MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / _CmdSymbolsInfoHeader

Function _CmdSymbolsInfoHeader

source/Debugger/Debugger_Symbols.cpp:284–297  ·  view source on GitHub ↗

Format the summary of the specified symbol table ===========================================================================

Source from the content-addressed store, hash-verified

282// Format the summary of the specified symbol table
283//===========================================================================
284std::string _CmdSymbolsInfoHeader ( int iTable, int nDisplaySize /* = 0 */ )
285{
286 // Common case is to use/calc the table size
287 bool bActive = (g_bDisplaySymbolTables & (1 << iTable)) ? true : false;
288 int nSymbols = nDisplaySize ? nDisplaySize : (int)g_aSymbols[ iTable ].size();
289
290 // Short Desc: `MAIN`: `1000`
291 // // 2.6.2.19 Color for name of symbol table: _CmdPrintSymbol() "SYM HOME" _CmdSymbolsInfoHeader "SYM"
292 // CHC_STRING and CHC_NUM_DEC are both cyan, using CHC_USAGE instead of CHC_STRING
293 return StrFormat(CHC_USAGE "%s" CHC_ARG_SEP ":%s%d " // CHC_DEFAULT
294 , g_aSymbolTableNames[ iTable ]
295 , bActive ? CHC_NUM_DEC : CHC_WARNING, nSymbols
296 );
297}
298
299//===========================================================================
300std::string _CmdSymbolsSummaryStatus ( int iTable )

Callers 4

_CmdSymbolsSummaryStatusFunction · 0.85
CmdSymbolsInfoFunction · 0.85
_CmdSymbolsListTablesFunction · 0.85
_CmdSymbolsCommonFunction · 0.85

Calls 1

StrFormatFunction · 0.85

Tested by

no test coverage detected