refs #540 Add the ability to capture the current call stack, and use it in singleShot.

This commit is contained in:
Mathew Sutcliffe
2015-12-05 23:30:28 +00:00
parent 886f9937ce
commit 1282fc4c14
5 changed files with 131 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
/* Copyright (C) 2015
* swift Project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \file
#ifndef BLACKMISC_STACKTRACE_H
#define BLACKMISC_STACKTRACE_H
#include "blackmisc/blackmiscexport.h"
#include <QStringList>
namespace BlackMisc
{
/*!
* Returns a stack trace of the current thread of execution as a list of function names.
*/
BLACKMISC_EXPORT QStringList getStackTrace();
}
#endif