mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Move GetStackTrace and Demangle to wpiutil, add Windows support (#1819)
For Windows, import the StackWalker source (https://github.com/JochenKalmbach/StackWalker) plus PR 35 in that repo, with a few simplifications to StackWalker.h.
This commit is contained in:
@@ -71,14 +71,3 @@ bool wpi_assertNotEqual_impl(int valueA, int valueB,
|
||||
const wpi::Twine& valueBString,
|
||||
const wpi::Twine& message, wpi::StringRef fileName,
|
||||
int lineNumber, wpi::StringRef funcName);
|
||||
|
||||
namespace frc {
|
||||
|
||||
/**
|
||||
* Get a stack trace, ignoring the first "offset" symbols.
|
||||
*
|
||||
* @param offset The number of symbols at the top of the stack to ignore
|
||||
*/
|
||||
std::string GetStackTrace(int offset);
|
||||
|
||||
} // namespace frc
|
||||
|
||||
Reference in New Issue
Block a user