2015-05-27 14:48:45 +02:00
|
|
|
#ifndef backtrace_hh_INCLUDED
|
|
|
|
#define backtrace_hh_INCLUDED
|
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
|
|
|
struct Backtrace
|
|
|
|
{
|
|
|
|
static constexpr int max_frames = 16;
|
|
|
|
void* stackframes[max_frames];
|
|
|
|
int num_frames = 0;
|
|
|
|
|
|
|
|
Backtrace();
|
2015-05-27 14:56:27 +02:00
|
|
|
char* desc() const;
|
2015-05-27 14:48:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // backtrace_hh_INCLUDED
|
|
|
|
|