C/C++的增强型预处理器
enhac的Python项目详细描述
增强的C预处理器。
在早期开发中
当前功能:
要包含在C文件中的指令:
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++
有一些简单的方法可以指定搜索include的路径 待定
您可以在项目的根目录下放置一个名为“.enhac_conf”的配置文件:
[general] include_paths = ./inc/:./modules make = g++ --std=c++11 -O2 -c link = g++ include_exts_code = cpp c include_exts_header = hpp h