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

Issue 216313002: Introduce ASSERT_ENABLED macro. (Closed)

Created:
6 years, 9 months ago by tkent
Modified:
6 years, 9 months ago
Reviewers:
Kunihiko Sakamoto
CC:
blink-reviews, sof, eae+blinkwatch, abarth-chromium, dglazkov+blink, adamk+blink_chromium.org, Inactive, Mikhail, rwlbuis
Visibility:
Public.

Description

Introduce ASSERT_ENABLED macro. We have ASSERT_DISABLED macro, and it is typically used as #if !ASSERT_DISABLED ... #endif Double negative is not good for readability. We can write it with ASSERT_ENABLED as following: #if ASSERT_ENABLED ... #endif TEST=none; no behavior changes BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170280

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -9 lines) Patch
M Source/core/dom/TreeShared.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/wtf/Assertions.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/wtf/BloomFilter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/wtf/DateMath.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/wtf/StringHasher.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/wtf/ThreadRestrictionVerifier.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
tkent
would you review this please?
6 years, 9 months ago (2014-03-28 05:10:46 UTC) #1
Kunihiko Sakamoto
lgtm
6 years, 9 months ago (2014-03-28 05:15:46 UTC) #2
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 9 months ago (2014-03-28 05:30:57 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/216313002/1
6 years, 9 months ago (2014-03-28 05:31:01 UTC) #4
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 06:14:46 UTC) #5
Message was sent while issue was closed.
Change committed as 170280

Powered by Google App Engine
This is Rietveld 408576698