Hacker News new | ask | show | jobs
by DLudwig 3141 days ago
A suggestion: wrap the bulk of content in platform-specific .cpp files, with pre-processor guards that'll check for platform. This should allow the library to be imported into other projects, simply by importing all .cpp files, and adding a path for header-includes. With that done, adding support for extra build systems becomes an optional, albeit nice-to-have addition, but by no means required.
1 comments

Hi,

Interesting, haven't thought about that, will probably make that small change in the future on this lib and some others of my libs

Thanks!