fork(5) download
  1. #include <iostream>
  2.  
  3. struct X {
  4. ~X() { std::cout << std::endl; }
  5. };
  6.  
  7. #define DBG (X(), std::cout << __FILE__ << " " << __LINE__ << " ")
  8.  
  9. int main () {
  10. std::string world(", world");
  11. DBG << "Hello" << world;
  12. }
Success #stdin #stdout 0.01s 2812KB
stdin
Standard input is empty
stdout
prog.cpp 11 Hello, world