diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-23 21:08:42 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-23 21:08:42 +0100 |
commit | cabd90d259639b0b65e1897c00db7f295bb572f6 (patch) | |
tree | d5586d65231b384b6f6745b22385a461ae6f7cbd | |
parent | Add powerful debug header (diff) | |
download | flatland-cabd90d259639b0b65e1897c00db7f295bb572f6.tar.gz flatland-cabd90d259639b0b65e1897c00db7f295bb572f6.zip |
Fix _np::inspect in release mode
-rw-r--r-- | lib/include/debug.hpp | 4 |
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 |