Open calcmogul opened 1 month ago
I feel like doing DriverStation::ReportWarning()
and DriverStation::ReportError()
as wrappers of FRC_ReportError(warn::Warning, ...)
and adding a warn::Error
then wrapping FRC_ReportError(warn::Error, ...)
would be a good solution
Note, however, that the macro is able to automatically get the filename, line number, and function name for the user. Adding a FRC_ReportWarning()
macro would definitely be good, though.
I think the best thing we can do for now is add a FRC_ReportWarning().
Is your feature request related to a problem? Please describe. In C++, we currently have an
FRC_ReportError()
macro andfrc::ReportError()
function infrc/Errors.h
. These are very hard to find compared to Java'sDriverStation.reportError()
andDriverStation.reportWarning()
functions. It's also awkward and unintuitive how you're supposed to reports warnings by callingFRC_ReportError(warn::Warning, ...)
.Describe the solution you'd like I'd like ReportError() and ReportWarning() functions added to the C++ DriverStation class like Java has.