mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Added stack traces and better error reporting in C++
When an error is reported or an assertion fails in C++, a line is now printed with information about where the error occured, and a stack trace is printed. The stacktrace isn't implemented in the HAL because it's not hardware-dependent, so StackTrace.hpp and StackTrace.cpp are gone. The Eclipse project template is modified to include "-export-dynamic" in the linker options, which is necessary for stack traces. Change-Id: Ie86c14185b13ed603d0fe6467e87ba4f731b1913
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
|
||||
#include "ErrorBase.h"
|
||||
#include "HAL/cpp/Synchronized.hpp"
|
||||
#include "HAL/cpp/StackTrace.hpp"
|
||||
#include "nivision.h"
|
||||
#define WPI_ERRORS_DEFINE_STRINGS
|
||||
#include "WPIErrors.h"
|
||||
|
||||
Reference in New Issue
Block a user