Skip to content

Comment on CPIP – A C/C++ preprocessor implemented in Pythonparent

Comments

C++ only needs the preprocessor for two things

- includes (until modules become available)

- conditional compilation

Macros are better replaced with inline, constant expressions, templates with the added benefit of type safety and debugger support.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.