atilaneves / dpp

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

Add vaArgs only if macros are not ignored #293

Closed alexandrumc closed 2 years ago

alexandrumc commented 2 years ago

If --ignoreMacros is used, then the file is no longer preprocessed (https://github.com/atilaneves/dpp/blob/master/source/dpp/runtime/app.d#L139-L142). However, the preamble will still contain those two #defines, so the .d file generated will not compile.

atilaneves commented 2 years ago

Test?