I just came across this in flx_stdlib.pak:

...
@h=tangler('lib/flx_platform.flxh','data')
@select(h)
#define true case 1 of 2
#define false case 0 of 2

@plats = ["WIN32","POSIX","LINUX","MACOSX","CYGWIN","SOLARIS","BSD"]
@for i in plats:
  if(eval(i)==1):
    tangle("#define " + i + " true")
  else:
    tangle("#define " + i + " false")
@#

macro val true = case 1 of 2;
macro val false = case 0 of 2;
...

Is there any reason why "true" and "false" are seemingly defined twice?

-e

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to