File: backtrace.hh

package info (click to toggle)
kakoune 2024.05.18-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,816 kB
  • sloc: cpp: 31,938; sh: 255; perl: 226; makefile: 185; python: 144; ruby: 60
file content (22 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef backtrace_hh_INCLUDED
#define backtrace_hh_INCLUDED

namespace Kakoune
{

class String;

struct Backtrace
{
    static constexpr int max_frames = 16;
    void* stackframes[max_frames];
    int num_frames = 0;

    Backtrace();
    String desc() const;
};

}

#endif // backtrace_hh_INCLUDED