Blender V5.0
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
8
9#pragma once
10
12
19
21extern void (*mem_freeN_ex)(void *vmemh, AllocationType allocation_type);
22
27extern void *(*mem_callocN)(size_t len, const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
29
34extern void *(*mem_calloc_arrayN)(size_t len,
35 size_t size,
36 const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
38
43extern void *(*mem_mallocN)(size_t len, const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
45
50extern void *(*mem_malloc_arrayN)(size_t len,
51 size_t size,
52 const char *str) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT
54
57extern void *(*mem_mallocN_aligned_ex)(size_t len,
58 size_t alignment,
59 const char *str,
60 AllocationType allocation_type);
61
66extern void *(*mem_dupallocN)(const void *vmemh) /* ATTR_MALLOC */ ATTR_WARN_UNUSED_RESULT;
67
82void add_memleak_data(std::any data);
83
84} // namespace mem_guarded::internal
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_ALLOC_SIZE(...)
#define ATTR_NONNULL(...)
BMesh const char void * data
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52
#define str(s)
bool any(VecOp< bool, D >) RET
void *(* mem_dupallocN)(const void *vmemh) ATTR_WARN_UNUSED_RESULT
Definition mallocn.cc:39
void *(* mem_mallocN)(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
Definition mallocn.cc:46
void *(* mem_malloc_arrayN)(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
Definition mallocn.cc:47
void add_memleak_data(std::any data)
void *(* mem_calloc_arrayN)(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
Definition mallocn.cc:43
void(* mem_freeN_ex)(void *vmemh, AllocationType allocation_type)
Definition mallocn.cc:37
void *(* mem_mallocN_aligned_ex)(size_t len, size_t alignment, const char *str, AllocationType allocation_type)
Definition mallocn.cc:50
uint len