글 수 3,386
-소스-
#include <stdio.h>
int test();
int main()
{
test();
printf("function name: <%s>n", __func__);
return 0;
}
int test()
{
printf("function name: <%s>n", __func__);
return 0;
}
-결과-
function name: <test>
function name: <main>
-------
저 __func__라는 macro말야. 함수이름을 출력해주던데. 난 오늘 알았네...ㅡㅡ;
다들 알고 있는데 나만 모르는건가?ㅋ 이 외에도 유용한 macro가 있는 것 같으니 정리해둘 사람은 해두길.
여기는 누군가의 블로그: http://raine.tistory.com/49




오. 저도 처음 알게된 ㅋ
신기하네요 ㅋㅋㅋㅋ