Hi Massimo,
I have no complete list, but you can find the
officially supported ones in hbsetup.h. There
has been a lot of talk about this a few weeks
ago on this list, with some very detailed
descriptions on some rare switches, I suggest
to look into those.
If you mean the predefined macros on .prg
level, pls look into include/hbstdgen.ch,
and its dependencies. Plus there are a few
ones defined directly in the pp. If you make
a search for __DATE__ in the source/pp dir
you'll find the rest of those, too. (I have
no sources with me at this moment)
Brgds,
Viktor
On 2008.06.28., at 1:58, Massimo Belgrano wrote:
Victor can you post the list of envar,compile switch used by harbour
like __harbour__ and somethink like STRICTLY52
Or tell me What must search for find it
----- Messaggio originale -----
Da: Maurizio la Cecilia <[EMAIL PROTECTED]>
Inviato: venerdì 27 giugno 2008 22.08
A: 'Harbour Project Main Developer List.' <[EMAIL PROTECTED]
project.org>
Oggetto: R: [Harbour] Define for version recognition
Thanks Massimo.
Luckly i've always used the __XHARBOUR__ before the __HARBOUR__
test (or
only it) and the things have worked.
Never thought __HARBOUR__ have same behaviour in both compilers...
Now i
stay tuned.
Best regards.
Maurizio la Cecilia
-----Messaggio originale-----
Da: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Per conto di
Massimo Belgrano
Inviato: venerdì 27 giugno 2008 11.37
A: Harbour Project Main Developer List.
Oggetto: RE: [Harbour] Define for version recognition
#ifdef __HARBOUR__
If return true in Harbour and xharbour!
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Maurizio la Cecilia
Sent: Friday, June 27, 2008 11:23 AM
To: 'Harbour Project Main Developer List.'
Subject: R: [Harbour] Define for version recognition
Hi Viktor, to be clearer i'm searching something allowing a code as:
#ifdef __HARBOUR__
#ifdef __HARBOUR_SVN__
.... Code with new feautured funcs ....
#else
.... Code with old fashioned funcs ....
#endif
#endif
#ifdef __XHARBOUR__
#ifdef __XHARBOUR_CVS__
.... Code with new feautured funcs ....
#else
.... Code with old fashioned funcs ....
#endif
#endif
or something doing the same job.
You see, i need this flags at compile time ( of HwGUI, of
course... ;) ),
just for avoid to mantain compatibility with Harbour SVN only.
Best regards.
Maurizio
-----Messaggio originale-----
Da: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Per conto di
Szakáts Viktor
Inviato: venerdì 27 giugno 2008 1.44
A: Harbour Project Main Developer List.
Oggetto: Re: [Harbour] Define for version recognition
Hi Maurizio,
Pls check the version #defines in include/hbver.h,
on .prg level __HARBOUR__ has the version as its value.
Brgds,
Viktor
On 2008.06.26., at 19:19, Maurizio la Cecilia wrote:
I don't know if is possible, but i would know if ther'is in
Harbour
a pre
defined constant telling at compile time what version
(and hopefully
subversion) of the compiler is in use.
This could allow me to take care of features implemented
in newer
version
and lacking in older version (the stable, by example...).
TIA.
Best regards.
Maurizio la Cecilia
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour