.include once more

Jacek M. Holeczek (holeczek@clri6f.gsi.de)
Tue, 21 Jan 1997 19:29:08 +0100 (CET)


Just a small additional note.
If you want to place the default include path in your C++/C code which you
use sometimes as interpreted ( via the ".L" root/cint command ) and
sometimes you use this code by compiling it, use :
------------------------------------------------
#if defined(__CINT__) || defined(__MAKECINT__)
// This is needed only in case this function is to be used as
// interpreted by root/cint or cint, so that include files are found.
#pragma includepath /bla/bla/bla
#pragma includepath /ple/ple/ple
#endif
------------------------------------------------
The __CINT__ symbol is used by root/cint, while the __MAKECINT__ symbol is
used by the original cint.
Jacek.
P.S. I was just notified by Fons that you actually DON'T need {} even if
it is used from a root command line. That's right ( I checked ). One
needed {} using some previous versions of the cint interpreter. Seems
that the cint is better now :-) . Jacek.