Blender
V5.0
source
blender
blenlib
BLI_alloca.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
12
13
/* BLI_array_alloca / alloca */
14
15
#include <cstdlib>
16
#include <type_traits>
/* IWYU pragma: keep */
17
18
#define BLI_array_alloca(arr, realsize) \
19
(std::remove_reference_t<decltype(arr)>)alloca(sizeof(*arr) * (realsize))
Generated on
for Blender by
doxygen
1.16.1