summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-23 21:08:42 +0100
committerNao Pross <naopross@thearcway.org>2019-01-23 21:08:42 +0100
commitcabd90d259639b0b65e1897c00db7f295bb572f6 (patch)
treed5586d65231b384b6f6745b22385a461ae6f7cbd
parentAdd powerful debug header (diff)
downloadflatland-cabd90d259639b0b65e1897c00db7f295bb572f6.tar.gz
flatland-cabd90d259639b0b65e1897c00db7f295bb572f6.zip
Fix _np::inspect in release mode
-rw-r--r--lib/include/debug.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/include/debug.hpp b/lib/include/debug.hpp
index 5ee2ac8..fd90500 100644
--- a/lib/include/debug.hpp
+++ b/lib/include/debug.hpp
@@ -41,6 +41,8 @@ namespace _np {
void debug(Args&... args) {}
template<typename Msg, typename Expr, typename... Args>
- inline T& inspect(const Msg& msg, Expr& expr, const Args&... args) {}
+ inline T& inspect(const Msg& msg, Expr& expr, const Args&... args) {
+ return expr;
+ }
}
#endif