BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Assert.h File Reference
Include dependency graph for Assert.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ASSERT(condition)
 

Detailed Description

Defines the macro ASSERT.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file Assert.h.

Macro Definition Documentation

◆ ASSERT

#define ASSERT (   condition)
Value:
if (!(condition)) { \
std::stringstream msg; \
msg << "Assertion " << (#condition) << " failed in " << __FILE__ << ", line " << __LINE__; \
throw std::runtime_error(msg.str()); }

Definition at line 26 of file Assert.h.