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
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 auto triggerInitialization = gROOT;
48 (void)triggerInitialization;
49 return (cling::Interpreter *)((TCling *)gCling)->GetInterpreterImpl();
50}
51
R__EXTERN TInterpreter * gCling
Definition: TInterpreter.h:557
#define gROOT
Definition: TROOT.h:406
typedef void((*Func_t)())
This class defines an interface to the cling C++ interpreter.
Definition: TCling.h:99
static const TString & GetIncludeDir()
Get the include directory in the installation. Static utility function.
Definition: TROOT.cxx:2929
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
Definition: TROOT.cxx:2939
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()
const char * TROOT__GetEtcDir()
const char * TROOT__GetIncludeDir()
cling::Interpreter * TCling__GetInterpreter()