Logo ROOT   6.16/01
Reference Guide
TVersionCheck.h
Go to the documentation of this file.
1// @(#)root/base:$Id$
2// Author: Fons Rademakers 9/5/2007
3
4/*************************************************************************
5 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TVersionCheck
13#define ROOT_TVersionCheck
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TVersionCheck //
18// //
19// Used to check if the shared library or plugin is compatible with //
20// the current version of ROOT. //
21// //
22//////////////////////////////////////////////////////////////////////////
23
24#ifdef R__CXXMODULES
25#ifndef ROOT_TObject
26#error "Building with modules currently requires this file to be #included through TObject.h"
27#endif
28#endif // R__CXXMODULES
29
30#include "RVersion.h"
31
33public:
34 TVersionCheck(int versionCode); // implemented in TSystem.cxx
35};
36
37// FIXME: Due to a modules bug: https://llvm.org/bugs/show_bug.cgi?id=31056
38// our .o files get polluted with the gVersionCheck symbol despite it was not
39// visible in this TU.
40#ifndef R__CXXMODULES
41#ifndef __CINT__
43#endif
44#endif
45
46#endif
#define ROOT_VERSION_CODE
Definition: RVersion.h:21
static TVersionCheck gVersionCheck(ROOT_VERSION_CODE)
TVersionCheck(int versionCode)
Register version of plugin library.
Definition: TSystem.cxx:4257