MPQC 3.0.0-alpha
Loading...
Searching...
No Matches
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
9namespace 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 */
Contains new MPQC code since version 3.
Definition integralenginepool.hpp:37
MPQC exception class.
Definition exception.hpp:20

Generated at Wed Sep 25 2024 02:45:30 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.12.0.