gwnavruntime/kernel/SF_StackRegistry.h Source File
Go to the documentation of this file.
11 #if defined(KY_ENABLE_STACK_REGISTRY)
19 #define MAX_STACK_DEPTH 32
20 #define MAX_NAME_LENGTH 256
25 StackRef(
void* stack,
KyUInt32 frameCount, UPInt size) : m_frameCount(frameCount), m_size(size)
27 Alg::MemUtil::Copy(m_stack, stack,
sizeof(
void*) * frameCount);
32 KyUInt32 GetFrameCount()
const {
return m_frameCount; }
33 void* GetFrame(
KyUInt32 frameIndex)
const {
return m_stack[frameIndex]; }
34 UPInt GetSize()
const {
return m_size; }
37 void* m_stack[MAX_STACK_DEPTH];
42 class StackRegistryImpl;
52 static
void Initialize(
bool initSymbolTable);
55 static
void MapCurrentStackToUid(UPInt uid, UPInt size);
56 static
void UnMapStackFromUid(UPInt uid);
62 StackRegistry() : m_initialized(false), m_impl(
nullptr) { }
63 ~StackRegistry() { m_impl =
nullptr; }
65 static StackRegistry& Instance() {
static StackRegistry s_instance;
return s_instance; }
68 StackRegistryImpl* m_impl;
74 #endif // KY_ENABLE_STACK_REGISTRY
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17