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

Issue 267963003: mojo: Use static_assert for MOJO_COMPILE_ASSERT in C++11 mode. (Closed)

Created:
6 years, 7 months ago by Nico
Modified:
6 years, 7 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Visibility:
Public.

Description

mojo: Use static_assert for MOJO_COMPILE_ASSERT in C++11 mode, like in base/. BUG=321833 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268098

Patch Set 1 #

Patch Set 2 : tweak #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M mojo/public/c/system/macros.h View 1 1 chunk +3 lines, -1 line 3 comments Download

Messages

Total messages: 8 (0 generated)
Nico
First to stamp wins! https://codereview.chromium.org/267963003/diff/20001/mojo/public/c/system/macros.h File mojo/public/c/system/macros.h (right): https://codereview.chromium.org/267963003/diff/20001/mojo/public/c/system/macros.h#newcode14 mojo/public/c/system/macros.h:14: #define MOJO_ALLOW_UNUSED __attribute__((unused)) (Note that ...
6 years, 7 months ago (2014-05-04 01:32:40 UTC) #1
darin (slow to review)
https://codereview.chromium.org/267963003/diff/20001/mojo/public/c/system/macros.h File mojo/public/c/system/macros.h (right): https://codereview.chromium.org/267963003/diff/20001/mojo/public/c/system/macros.h#newcode31 mojo/public/c/system/macros.h:31: #if __cplusplus >= 201103L this header is intended to ...
6 years, 7 months ago (2014-05-04 03:15:14 UTC) #2
Nico
https://codereview.chromium.org/267963003/diff/20001/mojo/public/c/system/macros.h File mojo/public/c/system/macros.h (right): https://codereview.chromium.org/267963003/diff/20001/mojo/public/c/system/macros.h#newcode31 mojo/public/c/system/macros.h:31: #if __cplusplus >= 201103L On 2014/05/04 03:15:15, darin wrote: ...
6 years, 7 months ago (2014-05-04 04:20:12 UTC) #3
Nico
(see also http://stackoverflow.com/questions/5085392/what-is-the-value-of-an-undefined-constant-used-in-if-c ) On Sat, May 3, 2014 at 9:20 PM, <thakis@chromium.org> wrote: > ...
6 years, 7 months ago (2014-05-04 04:27:11 UTC) #4
darin (slow to review)
OK, thanks for explaining. I was sure I had encountered compilers complaining about #if used ...
6 years, 7 months ago (2014-05-04 04:50:35 UTC) #5
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 7 months ago (2014-05-04 04:52:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/267963003/20001
6 years, 7 months ago (2014-05-04 04:53:01 UTC) #7
commit-bot: I haz the power
6 years, 7 months ago (2014-05-04 05:21:34 UTC) #8
Message was sent while issue was closed.
Change committed as 268098

Powered by Google App Engine
This is Rietveld 408576698