Blender
V4.3
intern
guardedalloc
intern
mallocn_intern_function_pointers.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2024 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
9
#pragma once
10
11
namespace
mem_guarded::internal
{
12
13
enum class
AllocationType
{
15
ALLOC_FREE
,
17
NEW_DELETE
,
18
};
19
21
extern
void (*
mem_freeN_ex
)(
void
*vmemh,
AllocationType
allocation_type);
22
25
extern
void
*(*mem_mallocN_aligned_ex)(
size_t
len
,
26
size_t
alignment,
27
const
char
*
str
,
28
AllocationType
allocation_type);
29
44
void
add_memleak_data
(std::any data);
45
46
}
// namespace mem_guarded::internal
len
int len
Definition
draw_manager_c.cc:115
str
#define str(s)
Definition
ffmpeg_codecs.cc:103
mem_guarded::internal
Definition
mallocn_intern_function_pointers.hh:11
mem_guarded::internal::AllocationType
AllocationType
Definition
mallocn_intern_function_pointers.hh:13
mem_guarded::internal::AllocationType::ALLOC_FREE
@ ALLOC_FREE
mem_guarded::internal::AllocationType::NEW_DELETE
@ NEW_DELETE
mem_guarded::internal::add_memleak_data
void add_memleak_data(std::any data)
Definition
leak_detector.cc:96
mem_guarded::internal::mem_freeN_ex
void(* mem_freeN_ex)(void *vmemh, AllocationType allocation_type)
Definition
mallocn.cc:37
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0