From 5f3c72389ce95996cb413a05d49b462c7743084f Mon Sep 17 00:00:00 2001 From: Johannes Kapfhammer Date: Mon, 7 Oct 2019 14:30:00 +0200 Subject: [PATCH] print int instead of int64_t in expression --- include/bits/soi-dbg.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/bits/soi-dbg.hpp b/include/bits/soi-dbg.hpp index 86adabe..f59fb0f 100644 --- a/include/bits/soi-dbg.hpp +++ b/include/bits/soi-dbg.hpp @@ -173,7 +173,8 @@ T &&dbg_print(T &&value, std::string const& type, char const *file, int line, soi::print(value_buffer, ref); std::cerr << ANSI_DEBUG << "[" << file << ":" << line << " (" << function_name - << ")] " << ANSI_RESET << ANSI_EXPRESSION << expression + << ")] " << ANSI_RESET << ANSI_EXPRESSION + << replace_all(expression, "int64_t", "int") << ANSI_RESET << " = " << ANSI_VALUE << value_buffer.rdbuf() << ANSI_RESET << " (" << ANSI_TYPE << type << ANSI_RESET << ")" << '\n';