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

Side by Side Diff: Source/WTF/wtf/Assertions.h

Issue 13643002: Rename LOG() to LOG_INFO() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebase Created 7 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 | Source/WTF/wtf/RefCountedLeakCounter.cpp » ('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 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 /* LOG_ERROR */ 370 /* LOG_ERROR */
371 371
372 #if COMPILER(MSVC7_OR_LOWER) 372 #if COMPILER(MSVC7_OR_LOWER)
373 #define LOG_ERROR() ((void)0) 373 #define LOG_ERROR() ((void)0)
374 #elif ERROR_DISABLED 374 #elif ERROR_DISABLED
375 #define LOG_ERROR(...) ((void)0) 375 #define LOG_ERROR(...) ((void)0)
376 #else 376 #else
377 #define LOG_ERROR(...) WTFReportError(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, _ _VA_ARGS__) 377 #define LOG_ERROR(...) WTFReportError(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, _ _VA_ARGS__)
378 #endif 378 #endif
379 379
380 /* LOG */ 380 /* LOG_INFO */
381 381
382 #if COMPILER(MSVC7_OR_LOWER) 382 #if COMPILER(MSVC7_OR_LOWER)
383 #define LOG() ((void)0) 383 #define LOG_INFO() ((void)0)
384 #elif LOG_DISABLED 384 #elif LOG_DISABLED
385 #define LOG(channel, ...) ((void)0) 385 #define LOG_INFO(channel, ...) ((void)0)
386 #else 386 #else
387 #define LOG(channel, ...) WTFLog(&JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFI X, channel), __VA_ARGS__) 387 #define LOG_INFO(channel, ...) WTFLog(&JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_ PREFIX, channel), __VA_ARGS__)
388 #define JOIN_LOG_CHANNEL_WITH_PREFIX(prefix, channel) JOIN_LOG_CHANNEL_WITH_PREF IX_LEVEL_2(prefix, channel) 388 #define JOIN_LOG_CHANNEL_WITH_PREFIX(prefix, channel) JOIN_LOG_CHANNEL_WITH_PREF IX_LEVEL_2(prefix, channel)
389 #define JOIN_LOG_CHANNEL_WITH_PREFIX_LEVEL_2(prefix, channel) prefix ## channel 389 #define JOIN_LOG_CHANNEL_WITH_PREFIX_LEVEL_2(prefix, channel) prefix ## channel
390 #endif 390 #endif
391 391
392 /* LOG_VERBOSE */ 392 /* LOG_VERBOSE */
393 393
394 #if COMPILER(MSVC7_OR_LOWER) 394 #if COMPILER(MSVC7_OR_LOWER)
395 #define LOG_VERBOSE(channel) ((void)0) 395 #define LOG_VERBOSE(channel) ((void)0)
396 #elif LOG_DISABLED 396 #elif LOG_DISABLED
397 #define LOG_VERBOSE(channel, ...) ((void)0) 397 #define LOG_VERBOSE(channel, ...) ((void)0)
(...skipping 21 matching lines...) Expand all
419 #define RELEASE_ASSERT(assertion) (!(assertion) ? (CRASH()) : (void)0) 419 #define RELEASE_ASSERT(assertion) (!(assertion) ? (CRASH()) : (void)0)
420 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) RELEASE_ASSERT(assertion) 420 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) RELEASE_ASSERT(assertion)
421 #define RELEASE_ASSERT_NOT_REACHED() CRASH() 421 #define RELEASE_ASSERT_NOT_REACHED() CRASH()
422 #else 422 #else
423 #define RELEASE_ASSERT(assertion) ASSERT(assertion) 423 #define RELEASE_ASSERT(assertion) ASSERT(assertion)
424 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) ASSERT_WITH_MESSAGE(assertio n, __VA_ARGS__) 424 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) ASSERT_WITH_MESSAGE(assertio n, __VA_ARGS__)
425 #define RELEASE_ASSERT_NOT_REACHED() ASSERT_NOT_REACHED() 425 #define RELEASE_ASSERT_NOT_REACHED() ASSERT_NOT_REACHED()
426 #endif 426 #endif
427 427
428 #endif /* WTF_Assertions_h */ 428 #endif /* WTF_Assertions_h */
OLDNEW
« no previous file with comments | « no previous file | Source/WTF/wtf/RefCountedLeakCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698