programming/C_C++
디버깅시에 많이 사용하는 __FUNCTION__
공간사랑
2012. 4. 13. 15:21
반응형
http://blog.hwport.com/196?category=14
(void)fprintf(stdout, "%s:%s:%d message\n", __FILE__, __func__, __LINE__);
int main(void)
{
static const char *__func__[] = "main";
(void)fprintf(stdout, "%s\n", __func__);
/* ... */
}
반응형