Files
pilotclient/src/misc/stacktrace.h
2024-11-11 15:11:39 +01:00

28 lines
714 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 "misc/swiftmiscexport.h"
#include <QStringList>
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();
}
#endif