mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
29 lines
767 B
C++
29 lines
767 B
C++
// SPDX-FileCopyrightText: Copyright (C) 2015 swift Project Community / Contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
|
|
|
//! \file
|
|
|
|
#ifndef SWIFT_MISC_STACKTRACE_H
|
|
#define SWIFT_MISC_STACKTRACE_H
|
|
|
|
#include <QStringList>
|
|
|
|
#include "misc/swiftmiscexport.h"
|
|
|
|
namespace swift::misc
|
|
{
|
|
/*!
|
|
* Returns a stack trace of the current thread of execution as a list of function names.
|
|
*
|
|
* Returns a dummy list in release build.
|
|
*/
|
|
SWIFT_MISC_EXPORT QStringList getStackTrace();
|
|
|
|
/*!
|
|
* Returns a stack trace of the current thread of execution as a list of function names.
|
|
*/
|
|
SWIFT_MISC_EXPORT QStringList getStackTraceAlways();
|
|
} // namespace swift::misc
|
|
|
|
#endif // SWIFT_MISC_STACKTRACE_H
|