mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
HAND FIX final frc:: replacements
This commit is contained in:
committed by
Peter Johnson
parent
928ff20695
commit
67f2502b08
@@ -25,7 +25,7 @@ extern "C" {
|
||||
* require the GUI be run in the main thread.
|
||||
*
|
||||
* To be effective, this function must be called before the robot code starts
|
||||
* the main loop (e.g. by frc::StartRobot()).
|
||||
* the main loop (e.g. by wpi::StartRobot()).
|
||||
*
|
||||
* @param param parameter data to pass to mainFunc and exitFunc
|
||||
* @param mainFunc the function to be run when HAL_RunMain() is called.
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace warn {
|
||||
static constexpr int Warning = 16;
|
||||
} // namespace warn
|
||||
|
||||
namespace frc {
|
||||
namespace wpi {
|
||||
void ReportErrorV(int32_t status, const char* fileName, int lineNumber,
|
||||
const char* funcName, fmt::string_view format,
|
||||
fmt::format_args args) {
|
||||
@@ -55,12 +55,12 @@ inline void ReportError(int32_t status, const char* fileName, int lineNumber,
|
||||
ReportErrorV(status, fileName, lineNumber, funcName, format,
|
||||
fmt::make_format_args(args...));
|
||||
}
|
||||
} // namespace frc
|
||||
} // namespace wpi
|
||||
|
||||
#define WPILIB_ReportError(status, format, ...) \
|
||||
do { \
|
||||
if ((status) != 0) { \
|
||||
::frc::ReportError(status, __FILE__, __LINE__, __FUNCTION__, \
|
||||
::wpi::ReportError(status, __FILE__, __LINE__, __FUNCTION__, \
|
||||
format __VA_OPT__(, ) __VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
Reference in New Issue
Block a user