Add Chromium-only Blender WebEngine parity work
This commit is contained in:
19
blender-5.2.0/source/blender/blenlib/BLI_alloca.h
Normal file
19
blender-5.2.0/source/blender/blenlib/BLI_alloca.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#pragma once
|
||||
|
||||
/** \file
|
||||
* \ingroup bli
|
||||
*
|
||||
* Defines alloca and utility macro BLI_array_alloca
|
||||
*/
|
||||
|
||||
/* BLI_array_alloca / alloca */
|
||||
|
||||
#include <cstdlib>
|
||||
#include <type_traits> /* IWYU pragma: keep */
|
||||
|
||||
#define BLI_array_alloca(arr, realsize) \
|
||||
(std::remove_reference_t<decltype(arr)>)alloca(sizeof(*arr) * (realsize))
|
||||
Reference in New Issue
Block a user