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