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
|
Not Categorized, Please Help
|
|