[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4648 - GNUnet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r4648 - GNUnet/src/include |
Date: |
Mon, 5 Mar 2007 14:11:21 -0700 (MST) |
Author: durner
Date: 2007-03-05 14:11:21 -0700 (Mon, 05 Mar 2007)
New Revision: 4648
Modified:
GNUnet/src/include/gnunet_util_error.h
Log:
make assertion failure messages more friendly
Modified: GNUnet/src/include/gnunet_util_error.h
===================================================================
--- GNUnet/src/include/gnunet_util_error.h 2007-03-05 20:50:27 UTC (rev
4647)
+++ GNUnet/src/include/gnunet_util_error.h 2007-03-05 21:11:21 UTC (rev
4648)
@@ -172,13 +172,13 @@
*/
#define IF_GELOG(ctx, kind, a) do { if (GE_isLogged(ctx, kind)) { a; } }
while(0);
-#define GE_ASSERT(ctx, cond) do { if (! (cond)) { GE_LOG(ctx, GE_DEVELOPER |
GE_USER | GE_FATAL | GE_IMMEDIATE, _("Assertion failed at %s:%d in %s.\n"),
__FILE__, __LINE__, __FUNCTION__); GE_CONFIRM(ctx); abort(); } } while(0);
+#define GE_ASSERT(ctx, cond) do { if (! (cond)) { GE_LOG(ctx, GE_DEVELOPER |
GE_USER | GE_FATAL | GE_IMMEDIATE, _("Internal error: assertion failed at %s:%d
in %s.\n"), __FILE__, __LINE__, __FUNCTION__); GE_CONFIRM(ctx); abort(); } }
while(0);
-#define GE_ASSERT_FLF(ctx, cond, file, line, function) do { if (! (cond)) {
GE_LOG(ctx, GE_DEVELOPER | GE_USER | GE_FATAL | GE_IMMEDIATE, _("Assertion
failed at %s:%d in %s.\n"), file, line, function); GE_CONFIRM(ctx); abort(); }
} while(0);
+#define GE_ASSERT_FLF(ctx, cond, file, line, function) do { if (! (cond)) {
GE_LOG(ctx, GE_DEVELOPER | GE_USER | GE_FATAL | GE_IMMEDIATE, _("Internal
error: assertion failed at %s:%d in %s.\n"), file, line, function);
GE_CONFIRM(ctx); abort(); } } while(0);
-#define GE_BREAK(ctx, cond) do { if (! (cond)) { GE_LOG(ctx, GE_DEVELOPER |
GE_USER | GE_FATAL | GE_IMMEDIATE, _("Assertion failed at %s:%d in %s.\n"),
__FILE__, __LINE__, __FUNCTION__); } } while(0);
+#define GE_BREAK(ctx, cond) do { if (! (cond)) { GE_LOG(ctx, GE_DEVELOPER |
GE_USER | GE_FATAL | GE_IMMEDIATE, _("Internal error: assertion failed at %s:%d
in %s.\n"), __FILE__, __LINE__, __FUNCTION__); } } while(0);
-#define GE_BREAK_FLF(ctx, cond, file, line, function) do { if (! (cond)) {
GE_LOG(ctx, GE_DEVELOPER | GE_USER | GE_FATAL | GE_IMMEDIATE, _("Assertion
failed at %s:%d in %s.\n"), file, line, function); } } while(0);
+#define GE_BREAK_FLF(ctx, cond, file, line, function) do { if (! (cond)) {
GE_LOG(ctx, GE_DEVELOPER | GE_USER | GE_FATAL | GE_IMMEDIATE, _("Internal
error: assertion failed at %s:%d in %s.\n"), file, line, function); } }
while(0);
/**
* Log an error message at log-level 'level' that indicates
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4648 - GNUnet/src/include,
gnunet <=