#elif

1.

#ifdef xxx
...
#endif

2.

#if defined xxx
...
#else
...
#endif

3.

#if defined(xxx)
xxx
#elif defined(xxx)
xxx
#else
xxx
#endif

 

posted @ 2020-07-09 14:21  瘋耔  阅读(290)  评论(0编辑  收藏  举报
跳至侧栏