On Mon, 27 Oct 2008, Szak�ts Viktor wrote:

Hi Viktor,

> This is Harbour .prg code.
                  ^^^^
So please refresh in your mind what && does in .prg code ;-)

> If harbour is run (any version, I've now tried with 1.0.1 final BCC55),
> it prints: 'DEF_A AND NOT DEF_B'

Use '.and.', f.e.:

#if defined( DEF_A ) .and. defined( DEF_B )
   #stdout "DEF_A and DEF_B defined"
#endif

In this case you can also use bit operation and '&' operator because
defined() returns 0 or 1

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to