summaryrefslogtreecommitdiffstats
path: root/src/core/qtwebenginecoreglobal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/qtwebenginecoreglobal.h')
-rw-r--r--src/core/qtwebenginecoreglobal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/qtwebenginecoreglobal.h b/src/core/qtwebenginecoreglobal.h
index 9a222f43f..541406f87 100644
--- a/src/core/qtwebenginecoreglobal.h
+++ b/src/core/qtwebenginecoreglobal.h
@@ -57,4 +57,6 @@
# define QWEBENGINE_EXPORT
#endif
+#define ASSERT_ENUMS_MATCH(A, B) Q_STATIC_ASSERT_X(static_cast<int>(A) == static_cast<int>(B), "The enum values must match");
+
#endif // QTWEBENGINECOREGLOBAL_H