llamatrails
09-15-2006, 08:09 PM
This didn't work on the beta, and still doesn't on PPL 1.0 Lite.
#include "console.ppl"
func WinMain
InitConsole;
ShowConsole;
#define demo
#ifdef demo
ShowMessage("This is a demo");
#elseif Shareware
ShowMessage("This is Not a demo");
#else
ShowMessage("This may be a demo");
#endif
return (true);
end;
The error is :
PPL 1.0 Lite Compiler Error Report
error: (c:\ppl\projects\mytest.ppl) [Syntax error at '#ELSEIF' (11,1)]
error: (c:\ppl\projects\mytest.ppl) [Syntax error at 'SHAREWARE' (11,9)]
If the #elseif lines are commented out, then it works.
#include "console.ppl"
func WinMain
InitConsole;
ShowConsole;
#define demo
#ifdef demo
ShowMessage("This is a demo");
#elseif Shareware
ShowMessage("This is Not a demo");
#else
ShowMessage("This may be a demo");
#endif
return (true);
end;
The error is :
PPL 1.0 Lite Compiler Error Report
error: (c:\ppl\projects\mytest.ppl) [Syntax error at '#ELSEIF' (11,1)]
error: (c:\ppl\projects\mytest.ppl) [Syntax error at 'SHAREWARE' (11,9)]
If the #elseif lines are commented out, then it works.