]> git.saurik.com Git - apple/javascriptcore.git/blame - wtf/Assertions.cpp.rej
JavaScriptCore-521.tar.gz
[apple/javascriptcore.git] / wtf / Assertions.cpp.rej
CommitLineData
9dae56ea
A
1***************
2*** 63,88 ****
3 CFRelease(str);
4 CFRelease(cfFormat);
5 } else
6- #elif COMPILER(MSVC) && !PLATFORM(WIN_CE)
7- if (IsDebuggerPresent()) {
8- size_t size = 1024;
9-
10- do {
11- char* buffer = (char*)malloc(size);
12-
13- if (buffer == NULL)
14- break;
15-
16- if (_vsnprintf(buffer, size, format, args) != -1) {
17- OutputDebugStringA(buffer);
18- free(buffer);
19- break;
20- }
21-
22- free(buffer);
23- size *= 2;
24- } while (size > 1024);
25- }
26 vfprintf(stderr, format, args);
27 }
28
29--- 63,68 ----
30 CFRelease(str);
31 CFRelease(cfFormat);
32 } else
33 vfprintf(stderr, format, args);
34 }
35