#ifdef,#if defined,#if使用

#if defined BUFSIZE && BUFSIZE >= 1024

 can generally be simplified to just #if BUFSIZE >= 1024, since if BUFSIZE is not defined, it will be interpreted as having the value zero.

 

#if defined (__vax__) || defined (__ns16000__) would succeed if either of the names __vax__ or __ns16000__ is defined as a macro.

posted on 2009-06-23 16:20  呼风唤雨  阅读(1171)  评论(0编辑  收藏  举报

导航