매크로를 이용한 디버깅 메세지 출력
디버깅 메세지 뿌릴 때마다 다 적기 귀찮아서 만든 매크로. 유용하게들 쓰시옹. #define pr_msg(s) fprintf(stdout, "[%s/%s:%03d] "#s"\n",__FILE__,__FUNCTION__,__LINE__) #define print_msg(io, fmt, arg...) fprintf(io, "[%s/%s:%03d] [%s] "#fmt"\n",__FILE__,__FUNCTION__,__LINE__, arg) 디버깅 메세지 등을 쓸 때 좋은데, 사용법은 대충 보면 알거고.. 자세한건 검색 하시옹.
2013. 7. 30.