[Plib-cvs] plib/examples/src/psl/data test.psl,1.15,1.16
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2002-09-12 04:39:30
|
Update of /cvsroot/plib/plib/examples/src/psl/data In directory usw-pr-cvs1:/tmp/cvs-serv32635/plib/examples/src/psl/data Modified Files: test.psl Log Message: Implement #ifdef/#ifndef/#else/#endif Index: test.psl =================================================================== RCS file: /cvsroot/plib/plib/examples/src/psl/data/test.psl,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- test.psl 12 Sep 2002 03:17:06 -0000 1.15 +++ test.psl 12 Sep 2002 04:39:26 -0000 1.16 @@ -1,42 +1,66 @@ -#include <data/header.psh> #define ONE 1 -#define TWO 2 -#define THREE 3 -#undef ONE -#define ONE (THREE-TWO) void main () { - int i ; [...67 lines suppressed...] +#endif + +#ifdef ONE + printf ( "No...8\n" ) ; +#else + printf ( "No...9\n" ) ; +#endif + +#ifndef ONE + printf ( "No...A\n" ) ; +#else + printf ( "No...B\n" ) ; +#endif + + printf ( "No...C\n" ) ; +#endif + + printf ( "Yes! 8\n" ) ; } |