atilaneves / dpp

Directly include C headers in D source code
Boost Software License 1.0
231 stars 31 forks source link

Add option to specify which macros to ignore #262

Open cbecerescu opened 4 years ago

cbecerescu commented 4 years ago

E.g. in include/linux/kernel.h, there are macro definitions for max and min, which conflict with dlang's own max and min functions present in the .dpp file. In this case, I use d++ with --ignore-specified-macros "min,max"

atilaneves commented 4 years ago

Does --ignore-cursor not work already?