Is there a C preprocessor which can replace contiguos else and ifdef directives?

后端 未结 0 1468
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 13:10

I have a piece of code which looks like this,

#ifdef A
  printf("A");
#else
  #ifdef B
    printf("B");
  #endif
#endif

<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题