Partially processing a file with the preprocessor [duplicate]

99封情书 提交于 2019-12-04 07:51:16

There is a tool called "unifdef" that will do what you want.

You should definitely take a look at boost.wave

from the boost.wave preface:

So the main goals for the Wave project are:

  • full conformance with the C++ standard (ISO/IEC 14882:1998) 1 and with the C99 standard (INCITS/ISO/IEC 9899:1999)
  • usage of Spirit[4] for the parsing parts of the game (certainly :-)
  • maximal usage of STL and/or Boost libraries (for compactness and maintainability)
  • straightforward extendability for the implementation of additional features building a flexible library for different C++ lexing and preprocessing needs
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!