MPQC
3.0.0-alpha
check.hpp
1
#ifndef MPQC_UTILITY_CHECK_HPP
2
#define MPQC_UTILITY_CHECK_HPP
3
4
#include "mpqc/utility/exception.hpp"
5
6
#include <string>
7
#include <boost/current_function.hpp>
8
9
namespace
mpqc
{
10
11
inline
void
check_failed(
char
const
*file,
long
line,
12
char
const
*
function
,
13
char
const
*expr) {
14
throw
mpqc::Exception
(file, line, (std::string(
function
) + expr).c_str());
15
}
16
17
}
18
19
#define MPQC_CHECK(expr) \
20
((expr) ? ((void)0) : ::mpqc::check_failed \
21
(__FILE__, __LINE__, BOOST_CURRENT_FUNCTION, #expr))
22
23
#endif
/* MPQC_UTILITY_CHECK_HPP */
mpqc::Exception
MPQC exception class.
Definition:
exception.hpp:20
mpqc
Contains new MPQC code since version 3.
Definition:
integralenginepool.hpp:37
Generated at Sun Jan 26 2020 23:24:01 for
MPQC
3.0.0-alpha using the documentation package
Doxygen
1.8.16.