GDEBUG

C & C++ 관련 : 2009/10/24 16:15
디버깅용

#define GDEBUG // ghcstop add
#ifdef  GDEBUG
#    define gprintf(msg...)  do { fprintf(stderr,"%s %s() %d: ", __FILE__, __FUNCTION__, __LINE__); fprintf (stderr,msg);} while (0)
#else
#    define gprintf(msg...)
#endif
저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License

'C & C++ 관련' 카테고리의 다른 글

How do I call a C++ function from C?  (0) 2010/03/22
GDEBUG  (0) 2009/10/24
extern "C"  (0) 2009/10/16
The New C++: Smart pointers  (0) 2009/10/05
Posted by Real_G