Chromium Code Reviews| Index: Source/wtf/Assertions.h |
| diff --git a/Source/wtf/Assertions.h b/Source/wtf/Assertions.h |
| index ca91dd2bcf039897f93153a6b7e186ac617cf999..0d4802ffcb4c4cc4117fcadb194a0927d165a173 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: |
| + FrameToNameScope(void*); |
|
haraken
2014/06/16 01:15:40
Add explicit.
tkent
2014/06/16 02:34:47
Done.
|
| + ~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. */ |