ATLAS Offline Software
PhysicsAnalysis/MuonID/MuonIDAnalysis/MuonEfficiencyCorrections/MuonEfficiencyCorrections/errorcheck.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5  */
6 
7 // $Id: errorcheck.h 299732 2014-03-27 17:41:34Z krasznaa $
8 #ifndef CPTOOLTESTS_ERRORCHECK_H
9 #define CPTOOLTESTS_ERRORCHECK_H
10 
11 #define CHECK( ARG ) \
12  do { \
13  const bool result = ARG; \
14  if( ! result ) { \
15  ::Error( APP_NAME, "Failed to execute: \"%s\"", \
16  #ARG ); \
17  return 1; \
18  } \
19  } while( false )
20 
21 #endif // CPTOOLTESTS_ERRORCHECK_H