Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
backtrace.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2020 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __UTILS_BACKTRACE_H__
14#define __UTILS_BACKTRACE_H__
15
31char *
33 const char * exe_path,
34 const char * prefix,
35 int max_lines,
36 bool with_lines,
37 bool write_to_file);
38
39#define backtrace_get(prefix, max_lines, write_to_file) \
40 _backtrace_get (NULL, prefix, max_lines, false, write_to_file)
41
42#define backtrace_get_with_lines(prefix, max_lines, write_to_file) \
43 _backtrace_get ( \
44 (gZrythm && gZrythm->exe_path_) ? gZrythm->exe_path_ : NULL, prefix, \
45 max_lines, gZrythm && gZrythm->exe_path_ ? true : false, write_to_file)
46
51#endif
char * _backtrace_get(const char *exe_path, const char *prefix, int max_lines, bool with_lines, bool write_to_file)
Returns the backtrace with max_lines number of lines and a string prefix.