Re: Conditional includes
- Posted by jimcbrown (admin) Nov 12, 2010
- 1315 views
irv said...
How would I do a conditional include?
If x then include foo.e end if
Or, somewhat related question: how can I include a file specified as a string:
sequence s = "myfile.e" include s
Being able to do one (or both) of these would be a great help.
Note: the second seems like it 'should' work -
include "myfile.e" -- this does
Right now, only ifdef is supported.
ifdef LINUX then include l.e elsifdef FREEBSD then include f.e end ifdef
However, you may be able to implement better functionality through the new preprocessor interface.