tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

stack_trace.h (1037B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 // This is a dummy version of Chromium source file base/debug/stack_trace.h
      8 // to provide a dummy class StackTrace.
      9 
     10 #ifndef BASE_DEBUG_STACK_TRACE_H_
     11 #define BASE_DEBUG_STACK_TRACE_H_
     12 
     13 #include <iosfwd>
     14 #include <string>
     15 
     16 #include "base/base_export.h"
     17 
     18 namespace base {
     19 namespace debug {
     20 
     21 class BASE_EXPORT StackTrace {
     22 public:
     23  StackTrace() {}
     24 
     25  std::string ToString() const {
     26    return std::string();
     27  }
     28 
     29 #if !defined(__UCLIBC__) & !defined(_AIX)
     30  void OutputToStream(std::ostream*) const {}
     31 #endif
     32 };
     33 
     34 // Forwards to StackTrace::OutputToStream().
     35 BASE_EXPORT std::ostream& operator<<(std::ostream& os, const StackTrace& s);
     36 
     37 }  // namespace debug
     38 }  // namespace base
     39 
     40 #endif  // BASE_DEBUG_STACK_TRACE_H_