23 lines
427 B
C++
23 lines
427 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Stack.Unix.hpp
|
|
Date: 2022-1-26
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
#if !defined(_LIBCPP_HAS_MUSL_LIBC)
|
|
#include <execinfo.h>
|
|
#else
|
|
#include <ucontext.h>
|
|
#endif
|
|
|
|
namespace Aurora::Debug
|
|
{
|
|
StackTrace DumpContext(ucontext_t &uc);
|
|
|
|
StackTrace DumpContext(void *pContext);
|
|
|
|
StackTrace PlatformWalkCallStack();
|
|
} |