// Step 1924: DebugAdapterRouter // Routes DAP commands to the correct language debug adapter. // // t1: setActiveLanguage / getActiveLanguage // t2: registerAdapter and adapterSupports // t3: routeCommand true only when active language AND supports command // t4: adaptersSupporting finds all langs with a command // t5: registeredAdapters lists all registered languages #include "DebugAdapterRouter.h" #include namespace ws = whetstone; static int p=0,f=0; #define T(n) { std::cout<<" "<<#n<<"... "; } #define P() { std::cout<<"PASS\n"; ++p; } #define F(m) { std::cout<<"FAIL: "< 0 ? 1 : 0; }