Re: Conditional includes

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu