fork download
  1. #include <iostream>
  2.  
  3. #define L (
  4. #define R )
  5. #define C ,
  6. #define S ;
  7.  
  8. #define CALL(func, x, y) func(x, y)
  9.  
  10. void foo(int x, int y) {
  11. std::cout << "foo(" << x << ", " << y << ")\n";
  12. }
  13.  
  14. #define X(y) y
  15.  
  16. int main() {
  17. CALL(foo, 1, 2); // "foo(1, 2)"
  18. CALL(foo, 3 C 4 R S L 1, 2); // "foo(3, 4)"
  19. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
foo(1, 2)
foo(3, 4)