Logo ROOT   6.18/05
Reference Guide
rootclingTCling.cxx
Go to the documentation of this file.
1// @(#)root/meta:$Id$
2
3/*************************************************************************
4 * Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef R__DLLEXPORT
12# if _WIN32
13# define R__DLLEXPORT __declspec(dllexport)
14# else
15# define R__DLLEXPORT __attribute__ ((visibility ("default")))
16# endif
17#endif
18
19#include "rootclingTCling.h"
20
21#undef R__DLLEXPORT
22
23#include "TROOT.h"
24#include "TCling.h"
25
26extern "C"
28{
30}
31
32extern "C"
34{
35 return TROOT::GetIncludeDir();
36}
37
38extern "C"
39const char *TROOT__GetEtcDir()
40{
41 return TROOT::GetEtcDir();
42}
43
44extern "C"
45cling::Interpreter *TCling__GetInterpreter()
46{
47 static bool isInitialized = false;
48 gROOT; // trigger initialization
49 if (!isInitialized) {
50 gInterpreter->SetClassAutoloading(false);
51 isInitialized = true;
52 }
53 return (cling::Interpreter*) ((TCling*)gCling)->GetInterpreterImpl();
54}
55
R__EXTERN TInterpreter * gCling
Definition: TInterpreter.h:554
#define gInterpreter
Definition: TInterpreter.h:553
#define gROOT
Definition: TROOT.h:414
This class defines an interface to the cling C++ interpreter.
Definition: TCling.h:89
static const TString & GetIncludeDir()
Get the include directory in the installation. Static utility function.
Definition: TROOT.cxx:3007
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
Definition: TROOT.cxx:3028
static const char **& GetExtraInterpreterArgs()
INTERNAL function! Used by rootcling to inject interpreter arguments through a C-interface layer.
Definition: TROOT.cxx:2927
const char *** TROOT__GetExtraInterpreterArgs()
const char * TROOT__GetEtcDir()
const char * TROOT__GetIncludeDir()
cling::Interpreter * TCling__GetInterpreter()