This commit is contained in:
rusefi 2020-08-08 21:38:09 -04:00
parent 3ed85390af
commit 795c7acf31
1 changed files with 10 additions and 0 deletions

View File

@ -73,6 +73,8 @@
#define DISPLAY_SENSOR(x) {}
#define DISPLAY_IF(x) x
#if EFI_UNIT_TEST
#define DECLARE_ENGINE_PTR \
Engine *engine = nullptr; \
engine_configuration_s *engineConfiguration = nullptr; \
@ -84,6 +86,14 @@
(x)->engineConfiguration = engineConfiguration; \
(x)->config = config;
#else // EFI_UNIT_TEST
#define DECLARE_ENGINE_PTR
#define INJECT_ENGINE_REFERENCE(x) {}
#endif // EFI_UNIT_TEST
#define EXPAND_Engine \
engine_configuration_s *engineConfiguration = engine->engineConfigurationPtr; \
persistent_config_s *config = engine->config; \