ROOT
v6-26
Reference Guide
Loading...
Searching...
No Matches
stlLoader.cc
Go to the documentation of this file.
1
#include "G__ci.h"
2
#include "Api.h"
3
#include "FastAllocString.h"
4
5
#ifndef __CINT__
6
static
const
char
*
what
= WHAT;
7
#endif
8
9
static
int
stlLoader
()
10
{
11
G__ClassInfo cl(
"TSystem"
);
12
if
(cl.IsValid() && strlen(WHAT)<1000) {
13
G__FastAllocString buf;
14
buf.Format(
"\"lib%sDict\""
,
what
);
15
16
G__CallFunc func;
17
long
offset;
18
func.SetFuncProto(&cl,
"Load"
,
"const char*"
,&offset);
19
20
if
(func.InterfaceMethod()) {
21
long
tmp = G__int(G__calc(
"gSystem"
));
22
void
* gsystem = (
void
*)tmp;
23
24
func.SetArgs(buf);
25
func.Exec(gsystem);
26
}
27
}
28
return
0;
29
}
30
31
static
int
sltLoad
=
stlLoader
();
what
static const char * what
Definition
stlLoader.cc:6
stlLoader
static int stlLoader()
Definition
stlLoader.cc:9
sltLoad
static int sltLoad
Definition
stlLoader.cc:31
core
clingutils
src
stlLoader.cc
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:12 (GVA Time) using Doxygen 1.9.8