C++ has many predefined macros too
std::cout << "This file: " << __FILE__ << std::endl; std::cout << "This line: " << __LINE__ << std::endl; std::cout << "Compiled on: " << __DATE__ << " at " << __TIME__ << std::endl;
Last updated 3 months ago