Hello,
I would like to know how to handle arguments of a loaded macro in CINT.
Following is a simple example which I want to solve.
An example macro with an argument, bar.C is;
void bar(Int_t *tmp) {
cout << tmp[0] << endl;
}
In CINT, I typed following sentences;
root [0] Int_t TMP[10];
root [1] TMP[0] = 99;
root [2] .x bar.C(TMP);
99
root [3] gROOT->Macro("bar.C");
Limitation: Can not define body of function in tempfile FILE:bar.C LINE:1
(Int_t)0
*** Interpreter error recovered ***
root [4] gROOT->Macro("bar.C(TMP)");
Error in <TROOT::Macro>: macro bar.C(TMP) not found in path .:..
As you see above, bar.C is in the macro search path. However, CINT seems to
search a macro named as bar.C(TMP).
If someone knows how to solve this, please inform me.
Thank you in advance,
Kensuke Homma
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:22 MET