Skip to content
Snippets Groups Projects
Commit 8f669c1e authored by Ivana Hrivnacova's avatar Ivana Hrivnacova
Browse files

Replaced extern gMC variable with a macro (to make it available in Cling)

parent da8d0131
No related branches found
No related tags found
No related merge requests found
......@@ -877,11 +877,7 @@ private:
ClassDef(TVirtualMC,1) //Interface to Monte Carlo
};
#if !defined(__CINT__)
R__EXTERN TMCThreadLocal TVirtualMC *gMC;
#else
R__EXTERN TVirtualMC *gMC;
#endif
#define gMC (TVirtualMC::GetMC())
#endif //ROOT_TVirtualMC
......@@ -27,7 +27,6 @@
ClassImp(TVirtualMC)
TMCThreadLocal TVirtualMC* TVirtualMC::fgMC=0;
TMCThreadLocal TVirtualMC* gMC;
//_____________________________________________________________________________
TVirtualMC::TVirtualMC(const char *name, const char *title,
......@@ -45,7 +44,6 @@ TVirtualMC::TVirtualMC(const char *name, const char *title,
Warning("TVirtualMC","Cannot initialise twice MonteCarlo class");
} else {
fgMC=this;
gMC=this;
fApplication = TVirtualMCApplication::Instance();
......@@ -78,7 +76,6 @@ TVirtualMC::~TVirtualMC()
// Destructor
//
fgMC=0;
gMC=0;
}
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment