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

From: Jacek M. Holeczek <>
Date: Tue, 1 Mar 2005 11:59:49 +0100 (CET)


> > 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 : 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. Received on Tue Mar 01 2005 - 11:59:55 MET

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