Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#ifdef __FreeBSD__
24char* __progname;
25char** environ;
26#endif
27
28#include "TROOT.h"
29#include "TCling.h"
30
31extern "C"
33{
35}
36
37extern "C"
39{
40 return TROOT::GetIncludeDir();
41}
42
43extern "C"
44const char *TROOT__GetEtcDir()
45{
46 return TROOT::GetEtcDir();
47}
48
49extern "C"
50cling::Interpreter *TCling__GetInterpreter()
51{
52 static auto triggerInitialization = gROOT;
53 (void)triggerInitialization;
54 return (cling::Interpreter *)((TCling *)gCling)->GetInterpreterImpl();
55}
56
R__EXTERN TInterpreter * gCling
#define gROOT
Definition TROOT.h:406
This class defines an interface to the cling C++ interpreter.
Definition TCling.h:102
static const TString & GetIncludeDir()
Get the include directory in the installation. Static utility function.
Definition TROOT.cxx:2995
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
Definition TROOT.cxx:3005
static const char **& GetExtraInterpreterArgs()
INTERNAL function! Used by rootcling to inject interpreter arguments through a C-interface layer.
Definition TROOT.cxx:2915
const char *** TROOT__GetExtraInterpreterArgs()
const char * TROOT__GetEtcDir()
const char * TROOT__GetIncludeDir()
cling::Interpreter * TCling__GetInterpreter()