fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #define VAR xxx
  5.  
  6. #define M(x) #x
  7. #define M2(x) M(x)
  8.  
  9.  
  10. int main() {
  11. cout << M(VAR) << " " << M2(VAR);
  12. return 0;
  13. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
VAR xxx