[gnote] Fix DBG_ASSERT for newer Glibmm
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix DBG_ASSERT for newer Glibmm
- Date: Mon, 28 Nov 2016 21:54:13 +0000 (UTC)
commit b7c3fcec2539c718fd9206c499bd6041a106b49b
Author: Aurimas Černius <aurisc4 gmail com>
Date: Mon Nov 28 23:53:21 2016 +0200
Fix DBG_ASSERT for newer Glibmm
src/debug.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/debug.hpp b/src/debug.hpp
index 2cc733e..74da13d 100644
--- a/src/debug.hpp
+++ b/src/debug.hpp
@@ -47,7 +47,7 @@ namespace utils {
#ifdef DEBUG
#define DBG_ASSERT(cond, reason) \
- ::utils::dbg_assert(cond, #cond, __FILE__, __LINE__, reason)
+ ::utils::dbg_assert(bool(cond), #cond, __FILE__, __LINE__, reason)
#else
#define DBG_ASSERT(cond, reason) \
assert(cond)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]