ATLAS Offline Software
Macros
ATHCONTAINERS_ASSERT.h File Reference

An overridable variant of assert. More...

#include <cassert>
Include dependency graph for ATHCONTAINERS_ASSERT.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ATHCONTAINERS_ASSERT(X)   assert(X)
 

Detailed Description

An overridable variant of assert.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.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.

Definition in file ATHCONTAINERS_ASSERT.h.

Macro Definition Documentation

◆ ATHCONTAINERS_ASSERT

#define ATHCONTAINERS_ASSERT (   X)    assert(X)

Definition at line 32 of file ATHCONTAINERS_ASSERT.h.