Blender
V4.3
source
blender
blenlib
intern
resource_scope.cc
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
#include "
BLI_resource_scope.hh
"
6
7
namespace
blender
{
8
9
ResourceScope::ResourceScope
() =
default
;
10
11
ResourceScope::~ResourceScope
()
12
{
13
/* Free in reversed order. */
14
for
(
int64_t
i = resources_.size(); i--;) {
15
ResourceData &
data
= resources_[i];
16
data
.free(
data
.data);
17
}
18
}
19
20
}
// namespace blender
BLI_resource_scope.hh
data
data
Definition
bmesh_operator_api_inline.hh:159
blender::ResourceScope::~ResourceScope
~ResourceScope()
Definition
resource_scope.cc:11
blender::ResourceScope::ResourceScope
ResourceScope()
blender
Definition
ANIM_action.hh:36
int64_t
__int64 int64_t
Definition
stdint.h:89
Generated on Sat Oct 4 2025 05:32:23 for Blender by
doxygen
1.14.0