| 543 | //=========================================================================== |
| 544 | |
| 545 | void VerifyDebuggerCommandTable() |
| 546 | { |
| 547 | for (int iCmd = 0; iCmd < NUM_COMMANDS; iCmd++ ) |
| 548 | { |
| 549 | if ( g_aCommands[ iCmd ].iCommand != iCmd) |
| 550 | { |
| 551 | std::string sText = StrFormat( "*** ERROR *** Enumerated Commands mis-matched at #%d!", iCmd ); |
| 552 | GetFrame().FrameMessageBox(sText.c_str(), "ERROR", MB_OK); |
| 553 | PostQuitMessage( 1 ); |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | if (strcmp( g_aCommands[ NUM_COMMANDS ].m_sName, DEBUGGER__COMMANDS_VERIFY_TXT__)) |
| 558 | { |
| 559 | GetFrame().FrameMessageBox("*** ERROR *** Total Commands mis-matched!", "ERROR", MB_OK); |
| 560 | PostQuitMessage( 1 ); |
| 561 | } |
| 562 | |
| 563 | if (strcmp( g_aParameters[ NUM_PARAMS ].m_sName, DEBUGGER__PARAMS_VERIFY_TXT__)) |
| 564 | { |
| 565 | GetFrame().FrameMessageBox("*** ERROR *** Total Parameters mis-matched!", "ERROR", MB_OK); |
| 566 | PostQuitMessage( 2 ); |
| 567 | } |
| 568 | } |
no test coverage detected