Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: Source/wtf/Assertions.cpp

Issue 22472006: Make HAVE(ISDEBUGGERPRESENT) a local macro (instead of a global macro) as it is only used in wtf/As… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/wtf/Platform.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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"
OLDNEW
« no previous file with comments | « no previous file | Source/wtf/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698