fork(2) download
  1. #include <iostream>
  2.  
  3. #define stringize_indirect( a ) stringize(a)
  4. #define stringize( a ) #a
  5.  
  6. #define paste( a, b ) a ## b
  7.  
  8. int main()
  9. {
  10. std::cout << stringize( strin ) stringize( gize ) << '\n' ;
  11. // std::cout << "strin" "gize" << '\n' ;
  12.  
  13. std::cout << stringize( paste( strin, gize ) ) << '\n' ;
  14. // std::cout << "paste( strin, gize )" << '\n' ;
  15.  
  16. std::cout << stringize_indirect( paste( strin, gize ) ) << '\n' ;
  17. // std::cout << "stringize" << '\n' ;
  18. }
  19.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
stringize
paste( strin, gize )
stringize