Skip to content

Commit

Permalink
Remove __MAKECINT__
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvassilev committed Mar 11, 2024
1 parent 8a96572 commit c76b8f7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 17 deletions.
6 changes: 0 additions & 6 deletions core/base/inc/TVirtualPerfStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ class TVirtualPerfStats : public TObject {
ClassDefOverride(TVirtualPerfStats,0) // ABC for collecting PROOF statistics
};

#ifdef __MAKECINT__
// To properly handle the use of gPerfStats in header files (in static declarations)
R__EXTERN TVirtualPerfStats *gPerfStats;
#else
#define gPerfStats (TVirtualPerfStats::CurrentPerfStats())
#endif


#endif
4 changes: 2 additions & 2 deletions core/base/src/TStyle.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1997,11 +1997,11 @@ void TStyle::SaveSource(const char *filename, Option_t *option)
char quote = '"';

// Writes include.
out << "#if defined (__MAKECINT__)" << std::endl << std::endl;
out << std::endl << std::endl;
out << "#ifndef ROOT_TStyle" << std::endl;
out << "#include " << quote << "TStyle.h" << quote << std::endl;
out << "#endif" << std::endl;
out << std::endl << "#endif" << std::endl;
out << std::endl << std::endl;

// Writes the macro entry point equal to the fname
out << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion documentation/doxygen/converttonotebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def declareNamespace(code):
def rs401dGetFiles(code):
if tutName == "rs401d_FeldmanCousins":
code = code.replace(
"""#if defined(__MAKECINT__)\n#include "../tutorials/roostats/NuMuToNuE_Oscillation.h"\n#include "../tutorials/roostats/NuMuToNuE_Oscillation.cxx" // so that it can be executed directly\n#else\n#include "../tutorials/roostats/NuMuToNuE_Oscillation.cxx+" // so that it can be executed directly\n#endif""" , """TString tutDir = gROOT->GetTutorialDir();\nTString headerDir = TString::Format("#include \\\"%s/roostats/NuMuToNuE_Oscillation.h\\\"", tutDir.Data());\nTString impDir = TString::Format("#include \\\"%s/roostats/NuMuToNuE_Oscillation.cxx\\\"", tutDir.Data());\ngROOT->ProcessLine(headerDir);\ngROOT->ProcessLine(impDir);""")
"""#include "../tutorials/roostats/NuMuToNuE_Oscillation.h"\n#include "../tutorials/roostats/NuMuToNuE_Oscillation.cxx" // so that it can be executed directly\n#else\n#include "../tutorials/roostats/NuMuToNuE_Oscillation.cxx+" // so that it can be executed directly\n""" , """TString tutDir = gROOT->GetTutorialDir();\nTString headerDir = TString::Format("#include \\\"%s/roostats/NuMuToNuE_Oscillation.h\\\"", tutDir.Data());\nTString impDir = TString::Format("#include \\\"%s/roostats/NuMuToNuE_Oscillation.cxx\\\"", tutDir.Data());\ngROOT->ProcessLine(headerDir);\ngROOT->ProcessLine(impDir);""")
return code


Expand Down
4 changes: 2 additions & 2 deletions gui/gui/src/TGFrame.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3439,7 +3439,7 @@ void TGTransientFrame::SaveSource(const char *filename, Option_t *option)
out <<"// By ROOT version "<< gROOT->GetVersion() <<" on "<<t.AsSQLString()<< std::endl;
out << std::endl;

out << "#if defined (__MAKECINT__)" << std::endl << std::endl;
out << std::endl << std::endl;

TIter nexti(ilist);
while((inc = (TObjString *)nexti())) {
Expand All @@ -3453,7 +3453,7 @@ void TGTransientFrame::SaveSource(const char *filename, Option_t *option)
}
}
out << std::endl << "#include " << quote << "Riostream.h" << quote << std::endl;
out << std::endl << "#endif" << std::endl;
out << std::endl << std::endl;
// deletes created ListOfIncludes
gROOT->GetListOfSpecials()->Remove(ilist);
ilist->Delete();
Expand Down
5 changes: 0 additions & 5 deletions io/io/inc/TFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,7 @@ class TFile : public TDirectoryFile {
ClassDefOverride(TFile,8) //ROOT file
};

#ifdef __MAKECINT__
// To properly handle the use of gFile in header files (in static declarations)
R__EXTERN TFile *gFile;
#else
#define gFile (TFile::CurrentFile())
#endif

/**
\class TFileOpenHandle
Expand Down
2 changes: 1 addition & 1 deletion math/mathcore/test/stressGoFTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ Int_t stressGoFTest(Int_t argc = 1 , Char_t* argv[] = nullptr) {
return RunTests(argc, argv);
}

#if !defined(__MAKECINT__)
#if !defined(__CLING__)
Int_t main(Int_t argc, Char_t* argv[]) {
return RunTests(argc, argv);
}
Expand Down

0 comments on commit c76b8f7

Please sign in to comment.