2 * Copyright (c) 2020 The WebM project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
11 #ifndef VPX_VPX_PORTS_STATIC_ASSERT_H_
12 #define VPX_VPX_PORTS_STATIC_ASSERT_H_
15 #define VPX_STATIC_ASSERT(boolexp) \
17 char vpx_static_assert[(boolexp) ? 1 : -1]; \
18 (void)vpx_static_assert; \
21 #define VPX_STATIC_ASSERT(boolexp) \
24 unsigned int vpx_static_assert : (boolexp) ? 1 : -1; \
25 } vpx_static_assert; \
26 (void)vpx_static_assert; \
30 #endif // VPX_VPX_PORTS_STATIC_ASSERT_H_