Skip to content

Commit

Permalink
Adding "static_assert" in lieu of "COMPILE_ASSERT" in gin module
Browse files Browse the repository at this point in the history
All our toolchains support c++'s static_assert now- COMPILE_ASSERT can be removed now.

BUG=442514

Review URL: https://codereview.chromium.org/855953007

Cr-Commit-Position: refs/heads/master@{#312281}
  • Loading branch information
anujk.sharma authored and Commit bot committed Jan 20, 2015
1 parent a3d0a42 commit c1b6156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gin/array_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ gin::WrapperInfo g_array_buffer_wrapper_info = {gin::kEmbedderNativeGin};

} // namespace

COMPILE_ASSERT(V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT == 2,
array_buffers_must_have_two_internal_fields);
static_assert(V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT == 2,
"array buffers must have two internal fields");

// ArrayBufferAllocator -------------------------------------------------------

Expand Down

0 comments on commit c1b6156

Please sign in to comment.