only define ARRAYSIZE_UNSAFE for NaCl builds
authorsvenpanne@chromium.org <svenpanne@chromium.org>
Fri, 24 Oct 2014 13:21:17 +0000 (13:21 +0000)
committersvenpanne@chromium.org <svenpanne@chromium.org>
Fri, 24 Oct 2014 13:21:48 +0000 (13:21 +0000)
commite743eef448f60941cf96303ea4424f9c42d3ef64
tree3e0f5c1f928d674ab72973cfd2c47f54224a48ca
parentdf9ac2c165946c17e2d49dfa3dcf987bc2217def
only define ARRAYSIZE_UNSAFE for NaCl builds

Now that C++11 is allowed, we can use arraysize instead of
ARRAYSIZE_UNSAFE, except in NaCl builds.  So let's move this
macro inside an NaCl ifdef.

BUG=chromium:405225
LOG=y
R=jochen@chromium.org

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

Patch from Mostyn Bramley-Moore <mostynb@opera.com>.

Cr-Commit-Position: refs/heads/master@{#24875}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24875 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/base/macros.h