codingame-cpp-merge

0.0.5 • Public • Published

Automatic merger for C/C++ in the CodinGame IDE

Install

Prerequisites

  • Node.js
  • npm (part of node)

Installation from npm

npm i -g codingame-cpp-merge

Installation from source

  • Clone this repo
  • issue npm link
git clone https://github.com/wimgoeman/codingame-cpp-merge.git
cd codingame-cpp-merge
npm link

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i codingame-cpp-merge

Weekly Downloads

4

Version

0.0.5

License

ISC

Last publish

Collaborators

  • wimgoeman