mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
************************************************************
* Merged Source Code from Development Trunk: Revision 4063 * ************************************************************ - Source Code is merged from: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP - This will be the Source for the Beta 2011 Test git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4064 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "debug_util.h"
|
||||
|
||||
const void *const *StackTrace::Addresses(size_t* count) {
|
||||
*count = trace_.size();
|
||||
if (trace_.size())
|
||||
return &trace_[0];
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void sgp::dumpStackTrace(vfs::String const& msg)
|
||||
{
|
||||
// the first error is the important one anyway
|
||||
static bool already_dumping = false;
|
||||
|
||||
if(!already_dumping) // needs a mutes to be sure
|
||||
{
|
||||
already_dumping = true;
|
||||
StackTrace str;
|
||||
str.PrintBacktrace(msg.utf8().c_str());
|
||||
already_dumping = false;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __MINGW32__
|
||||
StackTrace::StackTrace()
|
||||
{
|
||||
}
|
||||
|
||||
void StackTrace::PrintBacktrace(const char* msg)
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user