summaryrefslogtreecommitdiff
path: root/src/rekonq_defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rekonq_defines.h')
-rw-r--r--src/rekonq_defines.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rekonq_defines.h b/src/rekonq_defines.h
index fd0d1e25..bd11c24e 100644
--- a/src/rekonq_defines.h
+++ b/src/rekonq_defines.h
@@ -51,7 +51,13 @@
#define QL1S(x) QLatin1String(x)
#define QL1C(x) QLatin1Char(x)
-
+#ifndef ASSERT_NOT_REACHED
+# ifndef QT_NO_DEBUG
+# define ASSERT_NOT_REACHED(msg) qt_assert(#msg,__FILE__,__LINE__); kDebug() << #msg
+# else
+# define ASSERT_NOT_REACHED(msg) kDebug() << #msg
+# endif
+#endif //ASSERT_NOT_REACHED
// ----------------------------------------------------------------------------------------------------
// ENUMS