Loading...
Searching...
No Matches
Go to the documentation of this file.
7#define __PRETTY_FUNCTION__ __FUNCSIG__
10#define LSTEST_ASSERT(condition) \
13 throw std::runtime_error(std::string(__FILE__) + std::string(":") + \
14 std::to_string(__LINE__) + \
15 std::string(" in ") + \
16 std::string(__PRETTY_FUNCTION__)); \
20#define LSTEST_ASSERT_VALID_LS(levelSet, NumericType, D) \
22 auto check = viennals::Check<NumericType, D>(levelSet); \
24 if (check.isValid()) { \
25 std::cout << "SUCCESS" << std::endl; \
27 throw std::runtime_error( \
28 std::string(__FILE__) + std::string(":") + \
29 std::to_string(__LINE__) + std::string(" in ") + \
30 std::string(__PRETTY_FUNCTION__) + "\n" + check.what()); \