mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
[hal,wpilib] Rename RuntimeType constants to all caps
This commit is contained in:
@@ -32,13 +32,13 @@ using namespace wpi::util::java;
|
||||
#define kRIOStatusResourceNotInitialized -52010
|
||||
|
||||
static_assert(org_wpilib_hardware_hal_HALUtil_RUNTIME_ROBORIO ==
|
||||
HAL_Runtime_RoboRIO);
|
||||
static_assert(org_wpilib_hardware_hal_HALUtil_RUNTIME_ROBORIO2 ==
|
||||
HAL_Runtime_RoboRIO2);
|
||||
HAL_RUNTIME_ROBORIO);
|
||||
static_assert(org_wpilib_hardware_hal_HALUtil_RUNTIME_ROBORIO_2 ==
|
||||
HAL_RUNTIME_ROBORIO_2);
|
||||
static_assert(org_wpilib_hardware_hal_HALUtil_RUNTIME_SIMULATION ==
|
||||
HAL_Runtime_Simulation);
|
||||
HAL_RUNTIME_SIMULATION);
|
||||
static_assert(org_wpilib_hardware_hal_HALUtil_RUNTIME_SYSTEMCORE ==
|
||||
HAL_Runtime_Systemcore);
|
||||
HAL_RUNTIME_SYSTEMCORE);
|
||||
|
||||
static JavaVM* jvm = nullptr;
|
||||
static JException illegalArgExCls;
|
||||
|
||||
@@ -26,13 +26,13 @@
|
||||
*/
|
||||
HAL_ENUM(HAL_RuntimeType) {
|
||||
/** roboRIO 1.0 */
|
||||
HAL_Runtime_RoboRIO,
|
||||
HAL_RUNTIME_ROBORIO,
|
||||
/** roboRIO 2.0 */
|
||||
HAL_Runtime_RoboRIO2,
|
||||
HAL_RUNTIME_ROBORIO_2,
|
||||
/** Simulation runtime */
|
||||
HAL_Runtime_Simulation,
|
||||
HAL_RUNTIME_SIMULATION,
|
||||
/** Systemcore */
|
||||
HAL_Runtime_Systemcore,
|
||||
HAL_RUNTIME_SYSTEMCORE,
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -54,7 +54,7 @@ class SimPeriodicCallbackRegistry : public impl::SimCallbackRegistryBase {
|
||||
};
|
||||
} // namespace
|
||||
|
||||
static HAL_RuntimeType runtimeType{HAL_Runtime_Simulation};
|
||||
static HAL_RuntimeType runtimeType{HAL_RUNTIME_SIMULATION};
|
||||
static wpi::util::spinlock gOnShutdownMutex;
|
||||
static std::vector<std::pair<void*, void (*)(void*)>> gOnShutdown;
|
||||
static SimPeriodicCallbackRegistry gSimPeriodicBefore;
|
||||
|
||||
@@ -155,7 +155,7 @@ const char* HAL_GetErrorMessage(int32_t code) {
|
||||
}
|
||||
}
|
||||
|
||||
static HAL_RuntimeType runtimeType = HAL_Runtime_Systemcore;
|
||||
static HAL_RuntimeType runtimeType = HAL_RUNTIME_SYSTEMCORE;
|
||||
|
||||
HAL_RuntimeType HAL_GetRuntimeType(void) {
|
||||
return runtimeType;
|
||||
|
||||
Reference in New Issue
Block a user