mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
Fix linux build
This commit is contained in:
parent
bacf518189
commit
edb39039dd
3 changed files with 9 additions and 8 deletions
|
@ -4,13 +4,13 @@
|
|||
|
||||
namespace utils
|
||||
{
|
||||
std::vector<void*> backtrace(int max_depth = 255);
|
||||
std::vector<std::string> backtrace_symbols(const std::vector<void*>& stack);
|
||||
std::vector<void*> get_backtrace(int max_depth = 255);
|
||||
std::vector<std::string> get_backtrace_symbols(const std::vector<void*>& stack);
|
||||
|
||||
FORCE_INLINE void print_trace(logs::channel& logger, int max_depth = 255)
|
||||
{
|
||||
const auto trace = backtrace(max_depth);
|
||||
const auto lines = backtrace_symbols(trace);
|
||||
const auto trace = get_backtrace(max_depth);
|
||||
const auto lines = get_backtrace_symbols(trace);
|
||||
|
||||
for (const auto& line : lines)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue