Mark rprealloc as a part of Tracy API.

This commit is contained in:
Bartosz Taudul 2020-12-27 14:11:45 +01:00
parent a467ef4c2b
commit 3d37c686cf
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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,