Skip to main content

Enhanced preprocessor for C/C++

Project description

Enhanced preprocessor for C.


Current features:

Directives to include in C file:

include some header file (.h[pp]):
//:inc somelib1 somelib2

include a bunch of std libs:
//:stdinc iostream vector algorithm

include header + add .c[pp] file to compilation:
//:use somelib1 somelib2

specify compile command (per file)
//:make g++ -c --std=c++11 -Wall %INCS% -lm %OUT%
-> g++ -c --std=c++11 -Wall f1.cpp f2.cpp f3.cpp -lm -o out.obj

specify link command (only for main file)
//:link g++

There are some neat ways to specify paths to search for includes TBD

You can put a config file in root of the project, named “.enhac_conf”:

include_paths = ./inc/:./modules
make = g++ --std=c++11 -O2 -c
link = g++
include_exts_code = cpp c
include_exts_header = hpp h

Project details

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page