OptiPy
Loading...
Searching...
No Matches
debug.h
1
namespace
debug {
2
3
constexpr
bool
enabled =
4
#ifndef NDEBUG
5
true
;
6
#else
7
false
;
8
#endif
9
10
template
<
typename
... Args>
11
inline
void
log(Args&&... args) {
12
if
constexpr
(enabled) {
13
(std::cerr << ... << args) <<
'\n'
;
14
}
15
}
16
17
}
// namespace debug
src
opti_py
cpp
include
opti_py
debug.h
Generated by
1.16.1