Blender V5.0
static_assert.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5/* clang-format off */
6
7#pragma once
8
9/* #define static_assert triggers a bug in some clang-format versions, disable
10 * format for entire file to keep results consistent. */
11
13
14#if defined(CYCLES_CUBIN_CC)
15# define static_assert(statement, message)
16#endif
17
18#define static_assert_align(st, align) \
19 static_assert((sizeof(st) % (align) == 0), "Structure must be strictly aligned") // NOLINT
20
#define CCL_NAMESPACE_END