MCPcopy Create free account
hub / github.com/crownengine/crown / getCallStackExact

Function getCallStackExact

3rdparty/bx/src/debug.cpp:562–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560 }
561
562 BX_NO_INLINE uint32_t getCallStackExact(uint32_t _skip, uint32_t _max, uintptr_t* _outStack)
563 {
564#if BX_PLATFORM_LINUX
565 return getCallStackUnwind(_skip + 1 /* skip self */, _max, _outStack);
566#elif BX_PLATFORM_OSX
567 return getCallStackExecInfoBacktrace(_skip + 1 /* skip self */, _max, _outStack);
568#elif BX_PLATFORM_WINDOWS
569 return getCallStackWinRtl(_skip + 1 /* skip self */, _max, _outStack);
570#else
571 BX_UNUSED(_skip, _max, _outStack);
572 return 0;
573#endif // BX_PLATFORM_*
574 }
575
576 static constexpr uint32_t kWidth = 80;
577 static constexpr uint32_t kWidthPc = 16;

Callers 2

debugOutputCallstackFunction · 0.85
defaultAssertHandlerFunction · 0.85

Calls 3

getCallStackUnwindFunction · 0.85
getCallStackWinRtlFunction · 0.85

Tested by

no test coverage detected