fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. #define LOG_LINE (std::string(__FILE__ " ") + __FUNCTION__ + " " + std::to_string(__LINE__))
  5.  
  6. int main()
  7. {
  8. std::cout << __FILE__ << " " << __FUNCTION__ << " " << __LINE__ << std::endl;
  9. std::cout << LOG_LINE;
  10. }
  11.  
Success #stdin #stdout 0s 3276KB
stdin
Standard input is empty
stdout
prog.cpp main 8
prog.cpp main 9