Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Unified Diff: public/platform/WebCommon.h

Issue 15079005: Create a minimal webkit_common static library for use in browser process (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698