[Telepathy-commits] [telepathy-salut/master] gibber-debug.h: remove gibber_goto_if_reached and gibber_goto_if_fail as they don't really make sense
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Jan 7 03:53:14 PST 2009
---
lib/gibber/gibber-debug.h | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/lib/gibber/gibber-debug.h b/lib/gibber/gibber-debug.h
index cd7017e..bd4e68e 100644
--- a/lib/gibber/gibber-debug.h
+++ b/lib/gibber/gibber-debug.h
@@ -38,28 +38,6 @@ void gibber_debug_stanza (DebugFlags flag, GibberXmppStanza *stanza,
const gchar *format, ...)
G_GNUC_PRINTF (3, 4);
-#define gibber_goto_if_reached(label) G_STMT_START{ \
- g_log (G_LOG_DOMAIN, \
- G_LOG_LEVEL_CRITICAL, \
- "file %s: line %d: should not be reached", \
- __FILE__, \
- __LINE__); \
- goto label; }G_STMT_END;
-
-#define gibber_goto_if_fail(expr, label) G_STMT_START{ \
- if (expr) {} \
- else \
- { \
- g_log (G_LOG_DOMAIN, \
- G_LOG_LEVEL_CRITICAL, \
- "file %s: line %d: assertion `%s' failed", \
- __FILE__, \
- __LINE__, \
- #expr); \
- goto label; \
- }; }G_STMT_END
-
-
#ifdef DEBUG_FLAG
#define DEBUG(format, ...) \
--
1.5.6.5
More information about the Telepathy-commits
mailing list