Re: New keywords: ifdef, elsifdef, end ifdef
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
|
Not Categorized, Please Help
|
|