31 lines
728 B
C++
31 lines
728 B
C++
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* Copyright:
|
|
* 2011-2012, Danny Robson <danny@nerdcruft.net>
|
|
*/
|
|
|
|
#include "backtrace.hpp"
|
|
|
|
#include <ostream>
|
|
|
|
static constexpr std::size_t DEFAULT_DEPTH = 16;
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
cruft::backtrace::backtrace (void):
|
|
m_frames (DEFAULT_DEPTH)
|
|
{ ; }
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
std::ostream&
|
|
cruft::operator <<(std::ostream &os, const cruft::backtrace&)
|
|
{
|
|
return os << "null_backtrace";
|
|
}
|
|
|
|
|