mgcpp
A C++ Math Library Based on CUDA
assert.hpp
Go to the documentation of this file.
1 
2 // Copyright RedPortal, mujjingun 2017 - 2018.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #ifndef _MGCPP_SYSTEM_ASSERT_HPP_
8 #define _MGCPP_SYSTEM_ASSERT_HPP_
9 
10 namespace mgcpp {
11 inline bool ASSERT_MESSAGE(char const* message) {
12  (void)message;
13  return false;
14 }
15 } // namespace mgcpp
16 
17 #ifndef MGCPP_ASSERT
18 #include <cassert>
19 #define MGCPP_ASSERT(EXPR, MESSAGE) \
20  assert((EXPR) || mgcpp::ASSERT_MESSAGE(MESSAGE))
21 #endif
22 
23 #endif
bool ASSERT_MESSAGE(char const *message)
Definition: assert.hpp:11
Definition: adapter_base.hpp:12