From 2da64d15f61c71c31099a6f8b902214d04e2bd43 Mon Sep 17 00:00:00 2001 From: David Vo Date: Tue, 12 Nov 2019 16:38:49 +1100 Subject: [PATCH] Make usage reporting enums type match (#2069) This changes the C++ HALUsageReporting enums to have an explicit type which matches the HAL_Report parameter types. In practice this shouldn't change much except for tooling that might be parsing this header. --- hal/src/generate/FRCUsageReporting.h.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hal/src/generate/FRCUsageReporting.h.in b/hal/src/generate/FRCUsageReporting.h.in index e147776b91..34330c8c99 100644 --- a/hal/src/generate/FRCUsageReporting.h.in +++ b/hal/src/generate/FRCUsageReporting.h.in @@ -44,11 +44,11 @@ int64_t HAL_Report(int32_t resource, int32_t instanceNumber, int32_t context, #ifdef __cplusplus namespace HALUsageReporting { - typedef enum { + enum tResourceType : int32_t { ${usage_reporting_types_cpp} - } tResourceType; - typedef enum { + }; + enum tInstances : int32_t { ${usage_reporting_instances_cpp} - } tInstances; + }; } #endif