- 追加された行はこの色です。
- 削除された行はこの色です。
[[FrontPage]]
* C
#contents
** マクロ
*** TRACE
#ifndef __TRACE_H__
#define __TRACE_H__
// リリース時はコメントアウト
#define __DEBUG
// VCの時
//#define __VC
//======================================
// デバッグ用の処理
#ifdef __DEBUG
#ifdef __VC
#define TRACE(fmt,option) fprintf(stderr,fmt,option)
#else
#define TRACE(fmt,...) fprintf(stderr,fmt,##__VA_ARGS__)
#endif
#else
//======================================
// リリース時
#ifdef __VC
#define TRACE(fmt,option)
#else
#define TRACE(fmt,...)
#endif
#endif
#endif //__TRACE_H__