proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
assert_impl.hpp
Go to the documentation of this file.
1#ifndef VEG_ASSERT_HPP_VQDAJ2IBS
2#define VEG_ASSERT_HPP_VQDAJ2IBS
3
8#include <cassert>
9
10#define VEG_ASSERT(...) assert((__VA_ARGS__))
11
12#define VEG_ASSERT_ALL_OF(...) \
13 assert(::proxsuite::linalg::veg::_detail::all_of({ __VA_ARGS__ }))
14
15#define VEG_UNIMPLEMENTED() \
16 VEG_ASSERT(false); \
17 HEDLEY_UNREACHABLE()
18
20#endif /* end of include guard VEG_ASSERT_HPP_VQDAJ2IBS */