diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-25 12:00:44 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-25 12:00:44 +0100 |
commit | aa023c4b9be622120aed6979fa24648fad3e0ba8 (patch) | |
tree | bf37d7dc907c97244296099f543a74b40d66eb57 | |
parent | Update to make configure.py to build deps, instead of build.ninja (diff) | |
download | flatland-aa023c4b9be622120aed6979fa24648fad3e0ba8.tar.gz flatland-aa023c4b9be622120aed6979fa24648fad3e0ba8.zip |
Fix debug.hpp compilation error
-rw-r--r-- | lib/include/debug.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/include/debug.hpp b/lib/include/debug.hpp index fd90500..eed774c 100644 --- a/lib/include/debug.hpp +++ b/lib/include/debug.hpp @@ -16,7 +16,7 @@ _np::debug(__VA_ARGS__); \ } -#define npinspect(...); _np::inspect(__VA_ARGS__); +#define npinspect(msg, expr, ...); _np::inspect(msg, expr, __VA_ARGS__); namespace _np { template<typename... Args> @@ -25,8 +25,8 @@ namespace _np { } template<typename Msg, typename Expr, typename... Args> - inline T& inspect(const Msg& msg, Expr& expr, const Args&... args) { - npdebug(msg, expr, args); + inline Expr& inspect(const Msg& msg, Expr& expr, const Args&... args) { + npdebug(msg, expr, args...); return expr; } } @@ -41,7 +41,7 @@ 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 Expr& inspect(const Msg& msg, Expr& expr, const Args&... args) { return expr; } } |