File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 113
113
#include " TListOfFunctions.h"
114
114
#include " TListOfFunctionTemplates.h"
115
115
#include " TFunctionTemplate.h"
116
- #include " TGClient.h"
117
- #include " X3DBuffer.h"
118
- #include " TFile.h"
119
- #include " TVirtualGL.h"
120
116
121
117
#include < string>
122
118
namespace std {} using namespace std ;
Original file line number Diff line number Diff line change 18
18
19
19
#include " TVirtualGL.h"
20
20
#include " TROOT.h"
21
+ #include " TGlobal.h"
21
22
22
23
23
24
ClassImp (TGLManager)
24
25
25
26
TGLManager * (*gPtr2GLManager )() = 0;
26
27
28
+ namespace {
29
+ static struct AddPseudoGlobals {
30
+ AddPseudoGlobals () {
31
+ // User "gCling" as synonym for "libCore static initialization has happened".
32
+ // This code here must not trigger it.
33
+ TGlobalMappedFunction::Add (new TGlobalMappedFunction (" gGLManager" , " TVirtualGL*" ,
34
+ (TGlobalMappedFunction::GlobalFunc_t)&gGLManager ));
35
+ }
36
+ } gAddPseudoGlobals ;
37
+ }
38
+
27
39
// ____________________________________________________________________________
28
40
TGLManager::TGLManager () : TNamed(" gGLManager" , " " )
29
41
{
Original file line number Diff line number Diff line change @@ -55,7 +55,9 @@ static TGClient *gClientGlobal = 0;
55
55
namespace {
56
56
static struct AddPseudoGlobals {
57
57
AddPseudoGlobals () {
58
- gROOT ->GetListOfGlobals ()->Add (new TGlobalMappedFunction (" gClient" , " TGClient*" ,
58
+ // User "gCling" as synonym for "libCore static initialization has happened".
59
+ // This code here must not trigger it.
60
+ TGlobalMappedFunction::Add (new TGlobalMappedFunction (" gClient" , " TGClient*" ,
59
61
(TGlobalMappedFunction::GlobalFunc_t)&TGClient::Instance));
60
62
}
61
63
} gAddPseudoGlobals ;
You can’t perform that action at this time.
0 commit comments