Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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"
27 const char ** *TROOT__GetExtraInterpreterArgs()
28 {
29  return &TROOT::GetExtraInterpreterArgs();
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