in inc/testrunnerswitcher.h [195:226]
inline std::wstring ToString<my_type>(const my_type& value) \
{ \
char temp_str[1024]; \
std::wstring result; \
MU_C2(my_type,_ToString)(temp_str, sizeof(temp_str), value); \
int size_needed_in_chars = MultiByteToWideChar(CP_UTF8, 0, &temp_str[0], -1, NULL, 0); \
if (size_needed_in_chars == 0) \
{ \
result = L""; \
} \
else \
{ \
WCHAR* widechar_string = (WCHAR*)malloc(size_needed_in_chars * sizeof(WCHAR)); \
if (widechar_string == NULL) \
{ \
result = L""; \
} \
else \
{ \
if (MultiByteToWideChar(CP_UTF8, 0, temp_str, -1, widechar_string, size_needed_in_chars) == 0) \
{ \
result = L""; \
} \
else \
{ \
result = std::wstring(widechar_string); \
} \
free(widechar_string); \
} \
} \
return result; \
} \