/cvmfs/atlas.cern.ch/repo/sw/ASG/AnalysisBase/2.4.28/CxxUtils/CxxUtils/noreturn.h File Reference

Macro to mark a method as not returning. Expands to the c++11 noreturn attribute if we're using c++11, otherwise to the GNU noreturn attribute if we're using gcc, otherwise expands to just the declaration. More...

Go to the source code of this file.

Defines

#define ATH_HAS_NORETURN   0
#define ATH_NORETURN(X)   X

Detailed Description

Macro to mark a method as not returning. Expands to the c++11 noreturn attribute if we're using c++11, otherwise to the GNU noreturn attribute if we're using gcc, otherwise expands to just the declaration.

Author:
scott snyder <snyder@bnl.gov>
Date:
Feb, 2014 Use like:

ATH_NORETURN (void func (int a, double b));

Be careful if the return type contains commas (in a template argument list) --- you may need a typedef in that case.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1