> Do you have some concrete examples of when including source files is used?
An example in one of the projects I'm currently doing has platform specific files included like: ```cpp #if defined(LIN) #include "plat_lin.cpp" #elif defined(WIN) #include "plat_win.cpp" #elif defined(MAC) #include "plat_mac.cpp" #endif ``` then the code that uses those in the including file. Other selective includes are the network code (using either Boost++ or cURL) and other libraries where there is more than one solution that can be wrapped to a consistent interface. Its much neater than lots of `ifdef`s throughout the code. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/3490#issuecomment-1540077601 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany/pull/3490/[email protected]>
