[C++] 함수 정의 출력
Updated:
개요
- 정의 출력은
__PRETTY_FUNCTION__
, 이름 출력은__func__
예제
- 코드
-
#include <iostream> using namespace std; void func(int i) { cout << __func__ << endl; cout << __PRETTY_FUNCTION__ << endl; } int main() { func(1); return 0; }
-
- 실행 결과
-
func void func(int)
-