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

Side by Side Diff: base/logging.h

Issue 1866133005: CL for perf tryjob on mac Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | third_party/WebKit/Source/wtf/ArrayBuffer.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_LOGGING_H_ 5 #ifndef BASE_LOGGING_H_
6 #define BASE_LOGGING_H_ 6 #define BASE_LOGGING_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <cassert> 10 #include <cassert>
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 std::string* message_; 441 std::string* message_;
442 }; 442 };
443 443
444 // CHECK dies with a fatal error if condition is not true. It is *not* 444 // CHECK dies with a fatal error if condition is not true. It is *not*
445 // controlled by NDEBUG, so the check will be executed regardless of 445 // controlled by NDEBUG, so the check will be executed regardless of
446 // compilation mode. 446 // compilation mode.
447 // 447 //
448 // We make sure CHECK et al. always evaluates their arguments, as 448 // We make sure CHECK et al. always evaluates their arguments, as
449 // doing CHECK(FunctionWithSideEffect()) is a common idiom. 449 // doing CHECK(FunctionWithSideEffect()) is a common idiom.
450 450
451 #if defined(OFFICIAL_BUILD) && defined(NDEBUG) && !defined(OS_ANDROID) 451 #if defined(OFFICIAL_BUILD) && defined(NDEBUG)
452 452
453 // Make all CHECK functions discard their log strings to reduce code 453 // Make all CHECK functions discard their log strings to reduce code
454 // bloat for official release builds (except Android). 454 // bloat for official release builds (except Android).
455 455
456 // TODO(akalin): This would be more valuable if there were some way to 456 // TODO(akalin): This would be more valuable if there were some way to
457 // remove BreakDebugger() from the backtrace, perhaps by turning it 457 // remove BreakDebugger() from the backtrace, perhaps by turning it
458 // into a macro (like __debugbreak() on Windows). 458 // into a macro (like __debugbreak() on Windows).
459 #define CHECK(condition) \ 459 #define CHECK(condition) \
460 !(condition) ? ::base::debug::BreakDebugger() : EAT_STREAM_PARAMETERS 460 !(condition) ? ::base::debug::BreakDebugger() : EAT_STREAM_PARAMETERS
461 461
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 #elif NOTIMPLEMENTED_POLICY == 5 956 #elif NOTIMPLEMENTED_POLICY == 5
957 #define NOTIMPLEMENTED() do {\ 957 #define NOTIMPLEMENTED() do {\
958 static bool logged_once = false;\ 958 static bool logged_once = false;\
959 LOG_IF(ERROR, !logged_once) << NOTIMPLEMENTED_MSG;\ 959 LOG_IF(ERROR, !logged_once) << NOTIMPLEMENTED_MSG;\
960 logged_once = true;\ 960 logged_once = true;\
961 } while(0);\ 961 } while(0);\
962 EAT_STREAM_PARAMETERS 962 EAT_STREAM_PARAMETERS
963 #endif 963 #endif
964 964
965 #endif // BASE_LOGGING_H_ 965 #endif // BASE_LOGGING_H_
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/ArrayBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698