1
/*---------------------------------------------------------------------\
3
| |__ / \ / / . \ . \ |
8
\---------------------------------------------------------------------*/
9
/** \file zypp/base/Backtrace.h
11
#ifndef ZYPP_BASE_BACKTRACE_H
12
#define ZYPP_BASE_BACKTRACE_H
17
///////////////////////////////////////////////////////////////////
21
/** Dump current stack trace to a stream.
22
* Thanks to http://stackoverflow.com/questions/77005.
25
* std::cerr << zypp::dumpBacktrace << std::endl;
28
* #include <zypp/base/String.h>
29
* std::string trace( str::Str() << zypp::dumpBacktrace );
32
std::ostream & dumpBacktrace( std::ostream & stream_r );
35
///////////////////////////////////////////////////////////////////
36
#endif // ZYPP_BASE_BACKTRACE_H