Index: Source/wtf/Assertions.h |
diff --git a/Source/wtf/Assertions.h b/Source/wtf/Assertions.h |
index 7f57c8951f51632f4d236417e06572928ea85454..c1c5bd344eda48212ddc8fa1be966a46cfd02aee 100644 |
--- a/Source/wtf/Assertions.h |
+++ b/Source/wtf/Assertions.h |
@@ -120,6 +120,23 @@ WTF_EXPORT void WTFInstallReportBacktraceOnCrashHook(); |
#ifdef __cplusplus |
} |
+ |
+namespace WTF { |
+ |
+class WTF_EXPORT FrameToNameScope { |
+public: |
+ explicit FrameToNameScope(void*); |
+ ~FrameToNameScope(); |
+ const char* nullableName() { return m_name; } |
+ |
+private: |
+ const char* m_name; |
+ char* m_cxaDemangled; |
+}; |
+ |
+} // namespace WTF |
+ |
+using WTF::FrameToNameScope; |
#endif |
/* IMMEDIATE_CRASH() - Like CRASH() below but crashes in the fastest, simplest possible way with no attempt at logging. */ |