Hello ROOT team,
Is there any convention to define whether the ROOT source code coming
from ROOT CVS HEAD?
At the moment the ROOT version is provided by "RVersion.h".
However that doesn't help just one wants to play with ROTO from CVS as
well.
Some dedicated CPP macro would have allowed distinguishing the ROOT from
the CVS HEAD at the compile time.
Something like
RVersion.h:
#define ROOT_SOURCE_HEAD
The problem is the ROOT interfaces (see TCanvasImp class for example)
from CVS HEAD and from ROOT 4.00.04 are not compatible and this leads to
the compilation error.
To avoid this I need to be able to add into my code
#if defined(ROOT_SOURCE_HEAD) || (ROOT_VERSION_CODE >
ROOT_VERSION(4,00,4))
virtual UInt_t GetWindowGeometry(){ return 0;}
#else
virtual void GetWindowGeometry(){}
#endif
I would appreciate any other solution to distinguish the source of the
interface pragmatically without the "manual editing"
Thank you,
Valeri Fine
Brookaven National Laboratiory
P.O.Box 5000
Upton, NY 11973-5000
-----
Phone: +1 631 344 7806
Fax: +1 631 344 4206
E-mail: fine@bnl.gov
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET