OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2007-2009 Torch Mobile, Inc. |
4 * Copyright (C) 2011 University of Szeged. All rights reserved. | 4 * Copyright (C) 2011 University of Szeged. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include <asl.h> | 53 #include <asl.h> |
54 #endif | 54 #endif |
55 #endif // USE(CF) | 55 #endif // USE(CF) |
56 | 56 |
57 #if COMPILER(MSVC) | 57 #if COMPILER(MSVC) |
58 #include <crtdbg.h> | 58 #include <crtdbg.h> |
59 #endif | 59 #endif |
60 | 60 |
61 #if OS(WINDOWS) | 61 #if OS(WINDOWS) |
62 #include <windows.h> | 62 #include <windows.h> |
| 63 #define HAVE_ISDEBUGGERPRESENT 1 |
63 #endif | 64 #endif |
64 | 65 |
65 #if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID) | 66 #if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID) |
66 #include <cxxabi.h> | 67 #include <cxxabi.h> |
67 #include <dlfcn.h> | 68 #include <dlfcn.h> |
68 #include <execinfo.h> | 69 #include <execinfo.h> |
69 #endif | 70 #endif |
70 | 71 |
71 #if OS(ANDROID) | 72 #if OS(ANDROID) |
72 #include "android/log.h" | 73 #include "android/log.h" |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 376 |
376 void WTFLogAlways(const char* format, ...) | 377 void WTFLogAlways(const char* format, ...) |
377 { | 378 { |
378 va_list args; | 379 va_list args; |
379 va_start(args, format); | 380 va_start(args, format); |
380 vprintf_stderr_with_trailing_newline(format, args); | 381 vprintf_stderr_with_trailing_newline(format, args); |
381 va_end(args); | 382 va_end(args); |
382 } | 383 } |
383 | 384 |
384 } // extern "C" | 385 } // extern "C" |
OLD | NEW |