From 177a06d8482ac14d774d2137fbfe1732be66aa1e Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 5 Oct 2023 22:22:00 -0400 Subject: [PATCH] only: narrowing the scope of C++ --- firmware/controllers/core/error_handling.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/firmware/controllers/core/error_handling.h b/firmware/controllers/core/error_handling.h index 4e9894994c..ae4658d9a9 100644 --- a/firmware/controllers/core/error_handling.h +++ b/firmware/controllers/core/error_handling.h @@ -11,11 +11,6 @@ #include "rusefi_generated.h" #include -#ifdef __cplusplus -extern "C" -{ -#endif /* __cplusplus */ - /** * Something is wrong, but we can live with it: some minor sensor is disconnected * or something like that @@ -61,6 +56,11 @@ int getRusEfiVersion(void); #define criticalAssertVoid(condition, message) efiAssertVoid(ObdCode::OBD_PCM_Processor_Fault, condition, message) +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + #if EFI_PROD_CODE #include