Changeset 45921 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jul 15, 2009, 10:20:11 AM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r45918 r45921 1 2009-07-15 Yong Li <[email protected]> 2 3 Reviewed by George Staikos. 4 5 https://bugs.webkit.org/show_bug.cgi?id=27301 6 Use OutputDebugStringW on WinCE since OutputDebugStringA is not supported 7 Originally written by Yong Li <[email protected]> and refactored by 8 Joe Mason <[email protected]> 9 10 * wtf/Assertions.cpp: vprintf_stderr_common 11 1 12 2009-07-15 Yong Li <[email protected]> 2 13 -
trunk/JavaScriptCore/wtf/Assertions.cpp
r44922 r45921 1 1 /* 2 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2007-2009 Torch Mobile, Inc. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 46 47 #endif 47 48 49 #if PLATFORM(WINCE) 50 #include <winbase.h> 51 #endif 52 48 53 extern "C" { 49 54 … … 67 72 CFRelease(cfFormat); 68 73 } else 69 #elif COMPILER(MSVC) && ! PLATFORM(WINCE)74 #elif COMPILER(MSVC) && !defined(WINCEBASIC) 70 75 if (IsDebuggerPresent()) { 71 76 size_t size = 1024; … … 78 83 79 84 if (_vsnprintf(buffer, size, format, args) != -1) { 85 #if PLATFORM(WINCE) 86 // WinCE only supports wide chars 87 wchar_t* wideBuffer = (wchar_t*)malloc(size * sizeof(wchar_t)); 88 if (wideBuffer == NULL) 89 break; 90 for (unsigned int i = 0; i < size; ++i) { 91 if (!(wideBuffer[i] = buffer[i])) 92 break; 93 } 94 OutputDebugStringW(wideBuffer); 95 free(wideBuffer); 96 #else 80 97 OutputDebugStringA(buffer); 98 #endif 81 99 free(buffer); 82 100 break; … … 102 120 static void printCallSite(const char* file, int line, const char* function) 103 121 { 104 #if PLATFORM(WIN) && defined _DEBUG122 #if PLATFORM(WIN) && !PLATFORM(WINCE) && defined _DEBUG 105 123 _CrtDbgReport(_CRT_WARN, file, line, NULL, "%s\n", function); 106 124 #else
Note:
See TracChangeset
for help on using the changeset viewer.