 |
Blender V4.3
|
Go to the documentation of this file.
17#if defined(__cplusplus)
18# include <type_traits>
19# define BLI_array_alloca(arr, realsize) \
20 (std::remove_reference_t<decltype(arr)>)alloca(sizeof(*arr) * (realsize))
22# if defined(__GNUC__) || defined(__clang__)
23# define BLI_array_alloca(arr, realsize) (typeof(arr))alloca(sizeof(*arr) * (realsize))
25# define BLI_array_alloca(arr, realsize) alloca(sizeof(*arr) * (realsize))