Clean up your #include statements?

后端 未结 12 1323
梦如初夏
梦如初夏 2020-12-05 13:18

How do you maintain the #include statements in your C or C++ project? It seems almost inevitable that eventually the set of include statements in a file is either insufficie

12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-05 14:03

    Yup. We have a preprocessor of our own which gives us access to our own macro language. It also checks that header files are only included one time. Creating a simple preprocessor checking for multiple includes should be fairly easy.

提交回复
热议问题