diff options
| author | Stefan Boberg <[email protected]> | 2025-10-28 22:34:52 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-28 22:34:52 +0100 |
| commit | 9c2cdc2345880f18b67af6b7b5c11d0ce9041ced (patch) | |
| tree | dc868fb7368df37e7c3645f4cadea8bf73303505 /src/zencore/memtrack/memorytrace.cpp | |
| parent | 5.7.7 (diff) | |
| download | zen-9c2cdc2345880f18b67af6b7b5c11d0ce9041ced.tar.xz zen-9c2cdc2345880f18b67af6b7b5c11d0ce9041ced.zip | |
fix --zentrace=no compile errors (#616)
* make sure the correct `UE_WITH_TRACE` conditional is used to enable/disable support code as appropriate
* fixed some accidental `int32`, `int64` et al usage, due to typedefs leaking through from trace header
with this fix, it is now possible to build with `--zentrace=no` again
Diffstat (limited to 'src/zencore/memtrack/memorytrace.cpp')
| -rw-r--r-- | src/zencore/memtrack/memorytrace.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zencore/memtrack/memorytrace.cpp b/src/zencore/memtrack/memorytrace.cpp index 8f723866d..065a6f8ec 100644 --- a/src/zencore/memtrack/memorytrace.cpp +++ b/src/zencore/memtrack/memorytrace.cpp @@ -22,7 +22,7 @@ class FMalloc; -#if UE_TRACE_ENABLED +#if ZEN_WITH_TRACE namespace zen { UE_TRACE_CHANNEL_DEFINE(MemAllocChannel, "Memory allocations", true) } @@ -739,7 +739,7 @@ FTraceMalloc::~FTraceMalloc() ///////////////////////////////////////////////////////////////////////////// void* -FTraceMalloc::Malloc(SIZE_T Count, uint32_t Alignment) +FTraceMalloc::Malloc(size_t Count, uint32_t Alignment) { #if UE_MEMORY_TRACE_ENABLED // UE_TRACE_METADATA_CLEAR_SCOPE(); @@ -767,7 +767,7 @@ FTraceMalloc::Malloc(SIZE_T Count, uint32_t Alignment) ///////////////////////////////////////////////////////////////////////////// void* -FTraceMalloc::Realloc(void* Original, SIZE_T Count, uint32_t Alignment) +FTraceMalloc::Realloc(void* Original, size_t Count, uint32_t Alignment) { #if UE_MEMORY_TRACE_ENABLED // UE_TRACE_METADATA_CLEAR_SCOPE(); |