PDA

View Full Version : conditional compilation - bug ??


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.

kornalius
09-15-2006, 08:30 PM
Hi, this has just been fixed. Thanks for letting us know. The will be included in version 1.01.