Logo ROOT  
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 
26 extern "C"
28 {
30 }
31 
32 extern "C"
33 const char *TROOT__GetIncludeDir()
34 {
35  return TROOT::GetIncludeDir();
36 }
37 
38 extern "C"
39 const char *TROOT__GetEtcDir()
40 {
41  return TROOT::GetEtcDir();
42 }
43 
44 extern "C"
45 cling::Interpreter *TCling__GetInterpreter()
46 {
47  static auto triggerInitialization = gROOT;
48  (void)triggerInitialization;
49  return (cling::Interpreter *)((TCling *)gCling)->GetInterpreterImpl();
50 }
51 
static const char **& GetExtraInterpreterArgs()
INTERNAL function! Used by rootcling to inject interpreter arguments through a C-interface layer...
Definition: TROOT.cxx:2860
const char *** TROOT__GetExtraInterpreterArgs()
cling::Interpreter * TCling__GetInterpreter()
#define gROOT
Definition: TROOT.h:406
static const TString & GetIncludeDir()
Get the include directory in the installation. Static utility function.
Definition: TROOT.cxx:2929
const char * TROOT__GetEtcDir()
This class defines an interface to the cling C++ interpreter.
Definition: TCling.h:99
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
Definition: TROOT.cxx:2939
typedef void((*Func_t)())
const char * TROOT__GetIncludeDir()
R__EXTERN TInterpreter * gCling
Definition: TInterpreter.h:557