/cvmfs/atlas.cern.ch/repo/sw/ASG/AnalysisBase/2.4.31/AthContainers/AthContainers/tools/ATHCONTAINERS_ASSERT.h File Reference

An overridable variant of assert. More...

#include <cassert>

Go to the source code of this file.

Defines

#define ATHCONTAINERS_ASSERT(X)   assert(X)

Detailed Description

An overridable variant of assert.

Author:
scott snyder <snyder@bnl.gov>
Date:
Sep, 2010 For purposes of unit tests, it's sometimes useful to change the behavior of assert, so that, for example, it throws an exception rather than aborting.

It turns out that it's not feasible to override what the standard assert macro does (because assert.h does not use an include guard). So we instead introduce our own assert macro. Normally, this is the same as assert, but unit test programs may redefine it.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1