Re: (char*) paremeter to CINT macro

Rene Brun (Rene.Brun@cern.ch)
Fri, 29 May 1998 08:22:35 +0200


Alexander Zvyagin wrote:
>
> IHEP, Protvino, Russia, 28-MAY-1998
>
> Dear friends!
>
> I have macro v.C
> v(char *s)
> {
> printf("=> %s\n",s);
> }
>
> I type in root prompt:
> root [4] .x v.C("aa")
> => aa
> (int)6
> root [5] .x v.C("aa :(")
> Error in <TRint::ProcessFile>: macro v.C("aa : not found in path .:
> /usr/local/root/macros
>
> So I can not transfer string with symbol '(' to my macro.
>
> Is it CINT bug or feature?
>

This is a special case for the interface between Root and CINT.
Will be fixed. Meanwhile you can do instead:
.L v.C
v("aa:(")

Rene Brun