📜  c++ 方法名称 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:49.565000             🧑  作者: Mango

代码示例1
// EXAMPLE: if you are in a function/method called YourMethod()
std::cout << "Current function: " << __FUNCTION__; // OUTPUT: Current function: YourMethod

// SYNTAX
// __FUNCTION__