- Node.js
- npm (part of node)
npm i -g codingame-cpp-merge
- Clone this repo
- issue npm link
git clone https://github.com/wimgoeman/codingame-cpp-merge.git
cd codingame-cpp-merge
npm link
This tool will scan the working dir for cpp files recursively and append them all to a single file. While doing this, includes are processed similar to what the preprocessor would do.
See built-in help for possible options:
codingame-merge -h
- Create a directory tree with cpp and hpp files
- Do not use other extensions than hpp and cpp (more extension support may be added later)
- Use #include <> for libraries
- Use #include "" for local files
- Set up include guards in your hpp files, or use '#pragma once'
- Prefer pragma once over include guards to limit output size