vp8,get_sub_mv_ref_prob: change arguments to uint32_t
[platform/upstream/libvpx.git] / vpx_ports / static_assert.h
1 /*
2  *  Copyright (c) 2020 The WebM project authors. All Rights Reserved.
3  *
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.
9  */
10
11 #ifndef VPX_VPX_PORTS_STATIC_ASSERT_H_
12 #define VPX_VPX_PORTS_STATIC_ASSERT_H_
13
14 #if defined(_MSC_VER)
15 #define VPX_STATIC_ASSERT(boolexp)              \
16   do {                                          \
17     char vpx_static_assert[(boolexp) ? 1 : -1]; \
18     (void)vpx_static_assert;                    \
19   } while (0)
20 #else  // !_MSC_VER
21 #define VPX_STATIC_ASSERT(boolexp)                         \
22   do {                                                     \
23     struct {                                               \
24       unsigned int vpx_static_assert : (boolexp) ? 1 : -1; \
25     } vpx_static_assert;                                   \
26     (void)vpx_static_assert;                               \
27   } while (0)
28 #endif  // _MSC_VER
29
30 #endif  // VPX_VPX_PORTS_STATIC_ASSERT_H_