SCRIPT Run cc include replacements

This commit is contained in:
PJ Reiniger
2025-11-07 19:56:21 -05:00
committed by Peter Johnson
parent f0a3c64121
commit 7c6efa41ae
2477 changed files with 8882 additions and 8882 deletions

View File

@@ -2,15 +2,15 @@
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/Errors.h"
#include "wpi/system/Errors.hpp"
#include <string>
#include <utility>
#include <hal/DriverStation.h>
#include <hal/HALBase.h>
#include <wpi/StackTrace.h>
#include <wpi/fs.h>
#include "wpi/hal/DriverStation.h"
#include "wpi/hal/HALBase.h"
#include "wpi/util/StackTrace.hpp"
#include "wpi/util/fs.hpp"
using namespace frc;
@@ -41,12 +41,12 @@ const char* frc::GetErrorMessage(int32_t* code) {
#define S(label, offset, message) \
case err::label: \
return message;
#include "frc/WPIErrors.mac"
#include "wpi/system/WPIErrors.mac"
#undef S
#define S(label, offset, message) \
case warn::label: \
return message;
#include "frc/WPIWarnings.mac"
#include "wpi/system/WPIWarnings.mac"
#undef S
default:
return HAL_GetLastError(code);