Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A partially evaluating C preprocessor capable of refactoring ifdefs
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ifdef
lepl
.hgignore
LICENSE
README
ifdef-rewriter.py
ifdef-stats.py

README

ifdef-rewriter: given some information about macro definitions that are always enabled or always disabled this tool re-writes any expressions containing these macro definitions. Dead branches are removed, branches that are always taken will be de-ifdeffed. It also updates ifdef comments

ifdef-stats: produces a sorted list of macro definitions along with how many lines of code are in some way controlled by that definition.
Something went wrong with that request. Please try again.