fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. namespace A
  5. {
  6. #define MACRO(a) \
  7.   do { \
  8.   A::B::func(); \
  9.   } while(0)
  10.  
  11. class B
  12. {
  13. public:
  14. static void func(){cout << "called from MACRO\n";}
  15. };
  16. }
  17.  
  18. int main() {
  19. MACRO("something");
  20. return 0;
  21. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
called from MACRO