Re: #pragma link C++ macro ...

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Tue, 01 Mar 2005 14:33:47 +0100


Hi Jacek,

  Masa does not read roottalk. I've cc'ed him. For cint issues use also cint_at_root.cern.ch.

Cheers, Fons.

Jacek M. Holeczek wrote:
> Hi,
>
>

>>>The rootcint is used with the "-p" option ...

>
>
>>By definition the -p option is preprocessing the file __before__ passing
>>them to CINT.
>>Hence you can not pass them on.

>
>
> I thought that the "LinkDef" file was not parsed by the preprocessor (so
> if I define the macro there it should still be visible).
>
> Anyhow, is there any magic function call that registers a macro?
> I mean something like :
> G__RegisterUserMacro("XXX", "xxx");
>
>
>>Also the correct synatx is
>>	#pragma link MACRO XXX;

>
>
> According to the :
> http://root.cern.ch/root/Cint.phtml?ref
> this syntax is reserved for global macro functions or class member macro
> functions. Actually, the correct syntax is :
> #pragma link MACRO function [[classname]::][fname]<(argtypes)>;
>
> The syntax "#pragma link C++ macro XXX;" is not really described in the
> "reference manual", but is used in one of the examples there. Search for
> string "#pragma link C++ MACRO max;" in the above "reference".
>
> Best regards,
> Jacek.
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480
Received on Tue Mar 01 2005 - 14:33:55 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET