[[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__


トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS