Format the summary of the specified symbol table ===========================================================================
| 282 | // Format the summary of the specified symbol table |
| 283 | //=========================================================================== |
| 284 | std::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 | //=========================================================================== |
| 300 | std::string _CmdSymbolsSummaryStatus ( int iTable ) |
no test coverage detected