Re: New keywords: ifdef, elsifdef, end ifdef

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

Jeremy Cowgar wrote:
> 
> platform() replacement

This being the Internet and all, I'm going to pick on your arbitrary
example for the sake of argumentativeness:
sequence name

ifdef WIN32 then
    name = "Windows"

elsifdef LINUX then
    name = "Linux"

elsifdef DOS32 then
    name = "DOS"

end ifdef

global procedure say_hello()
    printf(1, "Hello from %s\n", {name})
end procedure

say_hello()
puts(1, "You are on " & name & "\n")


Seriously, though.  This is good stuff.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu