Skip to content
Snippets Groups Projects
Commit 2baf2f86 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

use __CLING__ macro instead of custom __cling__

parent 1a256971
No related branches found
No related tags found
1 merge request!230cleaning up last minute glitches
......@@ -9,7 +9,7 @@
// ============================================================================
#include "GaudiKernel/Kernel.h"
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winconsistent-missing-override"
#elif defined(__GNUC__) && __GNUC__ >= 5
......@@ -80,7 +80,7 @@ namespace Genfun // due to CLHEP
} // end of namespace GaudiMathImplementation
} // end of namespace Genfun
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic pop
#elif defined(__GNUC__) && __GNUC__ >= 5
#pragma GCC diagnostic pop
......
......@@ -13,7 +13,7 @@
// ============================================================================
#include "GaudiKernel/Kernel.h"
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winconsistent-missing-override"
#elif defined(__GNUC__) && __GNUC__ >= 5
......@@ -290,7 +290,7 @@ namespace Genfun
} // end of namespace GaudiMathImeplementation
} // end of namespace Genfun
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic pop
#elif defined(__GNUC__) && __GNUC__ >= 5
#pragma GCC diagnostic pop
......
......@@ -22,7 +22,7 @@
// ============================================================================
#include "GaudiKernel/Kernel.h"
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winconsistent-missing-override"
#elif defined(__GNUC__) && __GNUC__ >= 5
......@@ -164,7 +164,7 @@ namespace Genfun
} // end of namespace GaudiMath Implemnentation
} // end of namespace Genfun
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic pop
#elif defined(__GNUC__) && __GNUC__ >= 5
#pragma GCC diagnostic pop
......
......@@ -21,7 +21,7 @@
// ============================================================================
#include "gsl/gsl_integration.h"
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winconsistent-missing-override"
#elif defined(__GNUC__) && __GNUC__ >= 5
......@@ -428,7 +428,7 @@ namespace Genfun
} // end of namespace GaudiMathImplementation
} // end of namespace Genfun
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic pop
#elif defined(__GNUC__) && __GNUC__ >= 5
#pragma GCC diagnostic pop
......
......@@ -12,7 +12,7 @@
#include "CLHEP/GenericFunctions/AbsFunction.hh"
// ============================================================================
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winconsistent-missing-override"
#elif defined(__GNUC__) && __GNUC__ >= 5
......@@ -160,7 +160,7 @@ namespace Genfun
} // end of namespace GaudiMathImplementation
} // end of namespace GenFun
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic pop
#elif defined(__GNUC__) && __GNUC__ >= 5
#pragma GCC diagnostic pop
......
......@@ -22,7 +22,7 @@
#include "gsl/gsl_integration.h"
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winconsistent-missing-override"
#elif defined(__GNUC__) && __GNUC__ >= 5
......@@ -403,7 +403,7 @@ namespace Genfun
} // end of namespace GaudiMathImplementation
} // end of namespace Genfun
#if defined(__clang__) || defined(__cling__)
#if defined(__clang__) || defined(__CLING__)
#pragma clang diagnostic pop
#elif defined(__GNUC__) && __GNUC__ >= 5
#pragma GCC diagnostic pop
......
#ifndef GAUDIGSL_GAUDIGSLMATH_H
#define GAUDIGSL_GAUDIGSLMATH_H 1
// this trick defines the macro '__cling__' only when this header is processed
// by cling parser, while it is not set when we compile the .cpp of the
// dictionary (which is processed by the actual compiler)
#if ! defined(G__DICTIONARY) && ! defined(__cling__)
#define __cling__
#define __cling__defined_in_GAUDIGSLMATH_H
#endif
// ============================================================================
// Include files
// ============================================================================
......@@ -23,13 +15,4 @@
#include "GaudiMath/GaudiMath.h"
// ============================================================================
#ifdef __cling__defined_in_GAUDIGSLMATH_H
#undef __cling__
#undef __cling__defined_in_GAUDIGSLMATH_H
#endif
// ============================================================================
// The
// ============================================================================
#endif // GAUDIGSL_GAUDIGSLMATH_H
// ============================================================================
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment