Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
backtrace.h
1// SPDX-FileCopyrightText: © 2020, 2024-2025 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#pragma once
5
6#include <memory>
7#include <string>
8
9namespace backward
10{
11class SignalHandling;
12}
13
14namespace zrythm::utils
15{
16
17class Backtrace
18{
19public:
20 Backtrace ();
21
26 static std::unique_ptr<backward::SignalHandling> init_signal_handlers ();
27
28public:
35 std::string
36 get_backtrace (std::string prefix, size_t depth, bool write_to_file);
37};
38
39}; // namespace zrythm::utils
static std::unique_ptr< backward::SignalHandling > init_signal_handlers()
To be called once at the beginning of the program to setup the signal handlers.
std::string get_backtrace(std::string prefix, size_t depth, bool write_to_file)
Returns the backtrace with depth number of elements and a string prefix prefix.
String utilities.
Definition algorithms.h:12