Files
pilotclient/src/misc/stacktrace.h
2024-12-01 14:25:18 +01:00

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