1. Re: No more platform(), conditional includes, conditional functions, condit

Jerry Story wrote:
> 
> How would you get the slash right without platform()?
> 
> }}}
<eucode>
> if platform() = LINUX then
>   SLASH = "/"
> else
>   SLASH = "\\"
> end if
> </eucode>
{{{


 From what I understand, it would work like those examples above.
DOS, WINDOWS, or LINUX is defined automatically depending on the
operating system, so you could then do:

ifdef LINUX then
    SLASH = '/'
else
    SLASH = '\\'
end ifdef

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu