[niepce: 14/17] Added a function in assert for breakpoints
- From: Hubert FiguiÃre <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [niepce: 14/17] Added a function in assert for breakpoints
- Date: Thu, 2 Feb 2012 04:16:17 +0000 (UTC)
commit a3587e91b4ef7c04ea011eb7e9023f18f97eb66c
Author: Hub Figuiere <hub figuiere net>
Date: Sun Jan 22 00:14:27 2012 -0800
Added a function in assert for breakpoints
src/fwk/base/debug.cpp | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/fwk/base/debug.cpp b/src/fwk/base/debug.cpp
index d54186b..daca29e 100644
--- a/src/fwk/base/debug.cpp
+++ b/src/fwk/base/debug.cpp
@@ -1,7 +1,7 @@
/*
* niepce - fwk/base/debug.cpp
*
- * Copyright (C) 2007-2009 Hubert Figuiere
+ * Copyright (C) 2007-2012 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -34,10 +34,12 @@
#define NDEBUG _SAVENDEBUG
#endif
-
#include "debug.hpp"
-
+extern "C" void dbg_assert_raised()
+{
+ // set a breakpoint here.
+}
namespace fwk {
@@ -72,7 +74,7 @@ namespace fwk {
{
if(!condvalue) {
_print("ASSERT: ", "[%s] %s:%d %s", func, cond, filen, linen, reason);
-
+ dbg_assert_raised();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]