Blender
V5.0
intern
cycles
util
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
12
CCL_NAMESPACE_BEGIN
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
21
CCL_NAMESPACE_END
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
CCL_NAMESPACE_BEGIN
Definition
python.cpp:37
Generated on
for Blender by
doxygen
1.16.1