Re: specifying include directories

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

Matt Lewis wrote:
> 
> ChrisBurch2 wrote:
> > 
> > Hi
> > 
> > Does this mean that the include location information will be available to
> > your program? Much like getenv, perhaps a getconf function, without actually
> > having to use the search list to hunt for the conf file?
> 
> That's not currently in there, but I suppose it could be.  You can get the 
> information in the option switches that were passed on the command line.
> 
> Matt

I do not think that's entirely true. The parameters that are used by the
interpreter are consumed by it, from what I can tell in code and example. For
instance:

myprog.ex
---------
include misc.e
pretty_print(1, command_line(), {2})


$ exu -I /opt/eu40/include -D debug -D shareware hello.e John Doe
{
  "/opt/euphoria-4.0/source/exu",
  "/home/jeremy/hello.e",
  "John",
  "Doe"
}

--
Jeremy Cowgar
http://jeremy.cowgar.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu