libcruft-util/cruft/util/backtrace_null.cpp

31 lines
728 B
C++
Raw Normal View History

2016-02-26 13:36:01 +11:00
/*
2018-08-04 15:14:06 +10:00
* 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/.
2016-02-26 13:36:01 +11:00
*
* Copyright:
* 2011-2012, Danny Robson <danny@nerdcruft.net>
*/
#include "backtrace.hpp"
2018-03-22 16:10:06 +11:00
#include <ostream>
2022-06-23 07:28:26 +10:00
static constexpr std::size_t DEFAULT_DEPTH = 16;
2016-03-11 13:28:56 +11:00
///////////////////////////////////////////////////////////////////////////////
2022-06-23 07:28:26 +10:00
cruft::backtrace::backtrace (void):
2015-04-13 18:06:08 +10:00
m_frames (DEFAULT_DEPTH)
{ ; }
2016-03-11 13:28:56 +11:00
///////////////////////////////////////////////////////////////////////////////
std::ostream&
2022-06-23 07:28:26 +10:00
cruft::operator <<(std::ostream &os, const cruft::backtrace&)
2016-03-11 13:28:56 +11:00
{
return os << "null_backtrace";
}