Hi,
> G__add_macro("MYMACRO=Expanded Macro");
A warning ... I've just tried it and I've found that ... a macro added this way is added to the "command line" macros ... It doesn't also work well when I try G__add_macro("G4endl=std::endl") ...
> However, all you need to do is
> gROOT->ProcessLine("G__CINT_ENDL G4endl;");
Many thanks for this hint ...
The "gROOT->ProcessLine", as usually, generates a "segmentation violation",
but, using your hint, I've found that the following seems to work :
static int a_completely_irrelevant_variable = ( G__load_text("G__CINT_ENDL &G4endl = std::endl;"), G__load_text("istream &G4cin = std::cin;"), 0); ---------------------------------
root [0] .L ./G4.so root [1] std::endl (class G__CINT_ENDL)144910904 root [2] G4endl (class G__CINT_ENDL)144910904 root [3] std::cin (istream)1090694592 root [4] G4cin (istream)1090694592 ---------------------------------
I hope that the "class G__CINT_ENDL" is not just a "temporary" solution which will disappear from CINT one day ...
Thanks again,
Best regards,
Jacek.
Received on Thu Mar 03 2005 - 10:50:08 MET
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET