mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Mark rprealloc as a part of Tracy API.
This commit is contained in:
parent
a467ef4c2b
commit
3d37c686cf
@ -2166,7 +2166,7 @@ rpcalloc(size_t num, size_t size) {
|
|||||||
return block;
|
return block;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern inline RPMALLOC_ALLOCATOR void*
|
TRACY_API RPMALLOC_ALLOCATOR void*
|
||||||
rprealloc(void* ptr, size_t size) {
|
rprealloc(void* ptr, size_t size) {
|
||||||
#if ENABLE_VALIDATE_ARGS
|
#if ENABLE_VALIDATE_ARGS
|
||||||
if (size >= MAX_ALLOC_SIZE) {
|
if (size >= MAX_ALLOC_SIZE) {
|
||||||
|
@ -222,7 +222,7 @@ RPMALLOC_EXPORT RPMALLOC_ALLOCATOR void*
|
|||||||
rpcalloc(size_t num, size_t size) RPMALLOC_ATTRIB_MALLOC RPMALLOC_ATTRIB_ALLOC_SIZE2(1, 2);
|
rpcalloc(size_t num, size_t size) RPMALLOC_ATTRIB_MALLOC RPMALLOC_ATTRIB_ALLOC_SIZE2(1, 2);
|
||||||
|
|
||||||
//! Reallocate the given block to at least the given size
|
//! Reallocate the given block to at least the given size
|
||||||
RPMALLOC_EXPORT RPMALLOC_ALLOCATOR void*
|
TRACY_API RPMALLOC_ALLOCATOR void*
|
||||||
rprealloc(void* ptr, size_t size) RPMALLOC_ATTRIB_MALLOC RPMALLOC_ATTRIB_ALLOC_SIZE(2);
|
rprealloc(void* ptr, size_t size) RPMALLOC_ATTRIB_MALLOC RPMALLOC_ATTRIB_ALLOC_SIZE(2);
|
||||||
|
|
||||||
//! Reallocate the given block to at least the given size and alignment,
|
//! Reallocate the given block to at least the given size and alignment,
|
||||||
|
Loading…
Reference in New Issue
Block a user