mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilibc] DriverStation: Remove ReportError and ReportWarning
Change use cases to directly call FRC_ReportError.
This commit is contained in:
@@ -35,13 +35,15 @@ void RuntimeError::Report() const {
|
||||
}
|
||||
|
||||
const char* frc::GetErrorMessage(int32_t* code) {
|
||||
using namespace err;
|
||||
using namespace warn;
|
||||
switch (*code) {
|
||||
#define S(label, offset, message) \
|
||||
case label: \
|
||||
case err::label: \
|
||||
return message;
|
||||
#include "frc/WPIErrors.mac"
|
||||
#undef S
|
||||
#define S(label, offset, message) \
|
||||
case warn::label: \
|
||||
return message;
|
||||
#include "frc/WPIWarnings.mac"
|
||||
#undef S
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user