随笔01

Google C++ Code Style

#define DISALLOW_COPY_AND_ASSIGN( TypeName) \
TypeName( const TypeName&);			             \
void operator=( const TypeName&)

DebugCode

#define DEBUG
#if defined( DEBUG)
#define DebugCode( code_fragment ) { code_fragment }
#else
#define DebugCode( code_fragment )
#endif

posted @ 2011-05-31 21:48  soulnearby  阅读(101)  评论(0编辑  收藏  举报