VIPRA Documentation
Loading...
Searching...
No Matches
debug_do.hpp
1#pragma once
2
3namespace VIPRA::Debug {
4
9#ifdef VIPRA_DEBUG_MODE
10template <typename func_t>
11void debug_do(func_t&& func)
12{
13 func();
14}
15#else
16template <typename func_t>
17void debug_do(func_t&& /*unused*/)
18{
19}
20#endif
21} // namespace VIPRA::Debug