proxsuite
0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
assert.hpp
Go to the documentation of this file.
1
#include "
proxsuite/linalg/veg/internal/assert_impl.hpp
"
2
3
#ifdef VEG_DEBUG_ASSERT
4
#undef VEG_DEBUG_ASSERT
5
#endif
6
#ifdef VEG_DEBUG_EXPECT
7
#undef VEG_DEBUG_EXPECT
8
#endif
9
#ifdef VEG_DEBUG_ASSERT_ELSE
10
#undef VEG_DEBUG_ASSERT_ELSE
11
#endif
12
#ifdef VEG_DEBUG_EXPECT_ELSE
13
#undef VEG_DEBUG_EXPECT_ELSE
14
#endif
15
#ifdef VEG_DEBUG_ASSERT_ALL_OF
16
#undef VEG_DEBUG_ASSERT_ALL_OF
17
#endif
18
#ifdef VEG_DEBUG_EXPECT_ALL_OF
19
#undef VEG_DEBUG_EXPECT_ALL_OF
20
#endif
21
#ifdef VEG_DEBUG_ASSERT_ALL_OF_ELSE
22
#undef VEG_DEBUG_ASSERT_ALL_OF_ELSE
23
#endif
24
#ifdef VEG_DEBUG_EXPECT_ALL_OF_ELSE
25
#undef VEG_DEBUG_EXPECT_ALL_OF_ELSE
26
#endif
27
28
#ifdef NDEBUG
29
#define VEG_DEBUG_ASSERT(...) ((void)(0))
30
#define VEG_DEBUG_EXPECT(...) ((void)(0))
31
#define VEG_DEBUG_ASSERT_ELSE(Message, ...) ((void)(0))
32
#define VEG_DEBUG_EXPECT_ELSE(Message, ...) ((void)(0))
33
#define VEG_DEBUG_ASSERT_ALL_OF(...) ((void)(0))
34
#define VEG_DEBUG_EXPECT_ALL_OF(...) ((void)(0))
35
#define VEG_DEBUG_ASSERT_ALL_OF_ELSE(...) ((void)(0))
36
#define VEG_DEBUG_EXPECT_ALL_OF_ELSE(...) ((void)(0))
37
#else
38
#define VEG_DEBUG_ASSERT(...) VEG_ASSERT(__VA_ARGS__)
39
#define VEG_DEBUG_EXPECT(...) VEG_EXPECT(__VA_ARGS__)
40
#define VEG_DEBUG_ASSERT_ELSE(Message, ...) \
41
VEG_ASSERT_ELSE(Message, __VA_ARGS__)
42
#define VEG_DEBUG_EXPECT_ELSE(Message, ...) \
43
VEG_EXPECT_ELSE(Message, __VA_ARGS__)
44
#define VEG_DEBUG_ASSERT_ALL_OF(...) VEG_ASSERT_ALL_OF(__VA_ARGS__)
45
#define VEG_DEBUG_EXPECT_ALL_OF(...) VEG_EXPECT_ALL_OF(__VA_ARGS__)
46
#define VEG_DEBUG_ASSERT_ALL_OF_ELSE(...) VEG_ASSERT_ALL_OF_ELSE(__VA_ARGS__)
47
#define VEG_DEBUG_EXPECT_ALL_OF_ELSE(...) VEG_EXPECT_ALL_OF_ELSE(__VA_ARGS__)
48
#endif
assert_impl.hpp
include
proxsuite
linalg
veg
util
assert.hpp
Generated by
1.10.0