diff options
| author | Stefan Boberg <[email protected]> | 2025-03-06 17:35:39 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2025-03-06 17:35:39 +0100 |
| commit | b044289e3c8fbc4eb4ffa5c1d96da51aa0a41f9b (patch) | |
| tree | a511dd945c87415fb5389e6579299095e3f3afc8 /src/zencore/memtrack/callstacktrace.cpp | |
| parent | switched std::vector -> eastl::vector (diff) | |
| download | zen-sb/eastl.tar.xz zen-sb/eastl.zip | |
std::span -> eastl::spansb/eastl
Diffstat (limited to 'src/zencore/memtrack/callstacktrace.cpp')
| -rw-r--r-- | src/zencore/memtrack/callstacktrace.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/zencore/memtrack/callstacktrace.cpp b/src/zencore/memtrack/callstacktrace.cpp index d860c05d1..f7e66660c 100644 --- a/src/zencore/memtrack/callstacktrace.cpp +++ b/src/zencore/memtrack/callstacktrace.cpp @@ -56,7 +56,7 @@ CallstackTrace_Initialize() # include <zencore/trace.h> # include <atomic> -# include <span> +# include <EASTL/span.h> # include <zencore/windows.h> @@ -396,7 +396,7 @@ FBacktracer::FBacktracer(FMalloc* InMalloc) //////////////////////////////////////////////////////////////////////////////// FBacktracer::~FBacktracer() { - std::span<FModule> ModulesView(Modules, ModulesNum); + eastl::span<FModule> ModulesView(Modules, ModulesNum); for (FModule& Module : ModulesView) { Malloc->Free(Module.Functions); @@ -730,9 +730,9 @@ FBacktracer::LookupFunction(uintptr_t Address, FLookupState& State) const // Now we've a module we have a table of functions and their stack sizes so // we can get the frame size for Address - uint32_t FuncId = uint32_t(Address - IdToAddress(Module->Id)); - std::span<FFunction> FuncsView(Module->Functions, Module->NumFunctions); - auto FindIt = std::upper_bound(begin(FuncsView), end(FuncsView), FuncId, IdPredicate); + uint32_t FuncId = uint32_t(Address - IdToAddress(Module->Id)); + eastl::span<FFunction> FuncsView(Module->Functions, Module->NumFunctions); + auto FindIt = std::upper_bound(begin(FuncsView), end(FuncsView), FuncId, IdPredicate); if (FindIt == begin(FuncsView)) { return nullptr; |