i just have read this
em. aaah ... how to set HB_COMPAT_XPP at compile timeThis function is only visible if source/rtl/browdb.prg was compiled with the HB_COMPAT_XPP flag
under Cl*pper / Xbase++ i can use /D ... how with harbour
Moderator: Rathinagiri
em. aaah ... how to set HB_COMPAT_XPP at compile timeThis function is only visible if source/rtl/browdb.prg was compiled with the HB_COMPAT_XPP flag
Check difference with : hbmk2 test.prg /dTEST
Code: Select all
#ifndef TEST
#warning Warning: This sample must be tested using /dTEST compiler flag
#endif
#define FIRST
#define SECOND
#define THIRD
PROCEDURE Main()
? "testing Harbour /d compiler flag"
#ifdef TEST
? "Fine, you have just tested the /d compiler flag"
#else
? "Please use /dTEST compiler flag"
? "Or run 'set HB_USER_PRGFLAGS=/dTEST' if you are using the GNU Make System"
#endif
#ifdef FIRST
? "FIRST is defined"
#ifdef SECOND
? "FIRST and SECOND are defined"
#ifdef THIRD
? "FIRST, SECOND and THIRD are defined"
#else
? "THIRD is not defined"
#endif
#else
? "SECOND is not defined"
#endif
#else
? "FIRST is not defined"
#endif
RETURN