// Step 1953: PolyglotFunctionMap // // t1: registerFunction and functionCountForLanguage // t2: lookupTag returns correct tag; throws on missing // t3: hasFunction correct // t4: languagesForFunction across multiple languages // t5: registeredLanguages and allFunctions #include "PolyglotFunctionMap.h" #include #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; }