ifdef documentation
- Posted by irv Dec 10, 2017
- 1087 views
In the Euphoria docs 4.4.3.5 Using ifdef, there are several statements that seem to be - wrong.
First, we see the example:
ifdef WINDOWS then -- Windows specific code. elsedef include std/error.e crash("This program must be run with the Windows interpreter.") end ifdef
Later on, we see a warning which seems to say the above example won't work!
"Do be careful to put the numbers after the platform names for Windows:"
-- This puts() routine will never be called -- even when run by the Windows interpreter! ifdef WINDOWS then puts(1,"I am on Windows\n") end ifdef
Is this confusing? What numbers? 7, 10, XP? Also, is it correct to say:
-- OSX is not supported but we define public symbols for it anyhow.