| Index: sky/engine/wtf/InstanceCounter.cpp
|
| diff --git a/sky/engine/wtf/InstanceCounter.cpp b/sky/engine/wtf/InstanceCounter.cpp
|
| index 21643615fd1e941ffea0fb1315f1a2c3fbb00770..e37958227e50585eeb5efd81a3544600ccf07f9f 100644
|
| --- a/sky/engine/wtf/InstanceCounter.cpp
|
| +++ b/sky/engine/wtf/InstanceCounter.cpp
|
| @@ -43,6 +43,9 @@ const size_t extractNameFunctionPostfixLength = sizeof("]") - 1;
|
| #elif COMPILER(GCC)
|
| const size_t extractNameFunctionPrefixLength = sizeof("const char* WTF::extractNameFunction() [with T = ") - 1;
|
| const size_t extractNameFunctionPostfixLength = sizeof("]") - 1;
|
| +#elif COMPILER(MSVC)
|
| +const size_t extractNameFunctionPrefixLength = sizeof("const char *__cdecl WTF::extractNameFunction<class ") - 1;
|
| +const size_t extractNameFunctionPostfixLength = sizeof(">(void)") - 1;
|
| #else
|
| #warning "Extracting typename is supported only in compiler GCC, CLANG and MSVC at this moment"
|
| #endif
|
| @@ -51,7 +54,7 @@ const size_t extractNameFunctionPostfixLength = sizeof("]") - 1;
|
| // The result of extractNameFunction<T>() is given as |funcName|. |extractTypeNameFromFunctionName| then extracts a typename string from |funcName|.
|
| String extractTypeNameFromFunctionName(const char* funcName)
|
| {
|
| -#if COMPILER(CLANG) || COMPILER(GCC)
|
| +#if COMPILER(CLANG) || COMPILER(GCC) || COMPILER(MSVC)
|
| size_t funcNameLength = strlen(funcName);
|
| ASSERT(funcNameLength > extractNameFunctionPrefixLength + extractNameFunctionPostfixLength);
|
|
|
|
|