BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Assert.h File Reference

Defines the macro ASSERT. More...

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)
 
#define BORNAGAIN_BASE_UTILS_ASSERT_H
 

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 31 of file Assert.h.

◆ BORNAGAIN_BASE_UTILS_ASSERT_H

#define BORNAGAIN_BASE_UTILS_ASSERT_H

Definition at line 21 of file Assert.h.