Index: public/platform/WebCommon.h |
diff --git a/public/platform/WebCommon.h b/public/platform/WebCommon.h |
index 0140077b53c884e451f8940b6f999126abb36ede..11040ce2e18a4e6d8092f8967b750f8cb10c0f28 100644 |
--- a/public/platform/WebCommon.h |
+++ b/public/platform/WebCommon.h |
@@ -31,6 +31,8 @@ |
#ifndef WebCommon_h |
#define WebCommon_h |
+#include "../common/WebAssertion.h" |
jamesr
2013/06/06 21:47:56
i could also make all API headers that want to use
|
+ |
// ----------------------------------------------------------------------------- |
// Default configuration |
@@ -80,23 +82,6 @@ typedef unsigned short WebUChar; |
// Latin-1 character type |
typedef unsigned char WebLChar; |
-// ----------------------------------------------------------------------------- |
-// Assertions |
- |
-WEBKIT_EXPORT void failedAssertion(const char* file, int line, const char* function, const char* assertion); |
- |
} // namespace WebKit |
-// Ideally, only use inside the public directory but outside of WEBKIT_IMPLEMENTATION blocks. (Otherwise use WTF's ASSERT.) |
-#if defined(NDEBUG) |
-#define WEBKIT_ASSERT(assertion) ((void)0) |
-#else |
-#define WEBKIT_ASSERT(assertion) do { \ |
- if (!(assertion)) \ |
- failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ |
-} while (0) |
-#endif |
- |
-#define WEBKIT_ASSERT_NOT_REACHED() WEBKIT_ASSERT(0) |
- |
#endif |