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

Function VerifyDebuggerCommandTable

source/Debugger/Debugger_Commands.cpp:545–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543//===========================================================================
544
545void 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}

Callers 1

DebugInitializeFunction · 0.85

Calls 2

StrFormatFunction · 0.85
FrameMessageBoxMethod · 0.80

Tested by

no test coverage detected