This adds a -multiinclude command line flag to swig. Specifying this option causes swig to more faithfully emulate the C preprocessor in that it will permit repeatedly #including the same file.
The patch merely hooks up the pre-existing variable called single_include (in the preprocessor module) to a command line option.
In my case, the multi-includes are useful because we are using "super macros" to wrap a repetitive C interface with C++ classes.
Log in to post a comment.