auto-sync
This commit is contained in:
parent
0079636f4c
commit
2ce4e928b4
|
@ -12,6 +12,8 @@
|
||||||
|
|
||||||
#define EFI_USE_CCM TRUE
|
#define EFI_USE_CCM TRUE
|
||||||
|
|
||||||
|
#define EFI_ENABLE_ASSERTS FALSE
|
||||||
|
|
||||||
//#define EFI_UART_ECHO_TEST_MODE TRUE
|
//#define EFI_UART_ECHO_TEST_MODE TRUE
|
||||||
|
|
||||||
#define EFI_USE_UART_FOR_CONSOLE FALSE
|
#define EFI_USE_UART_FOR_CONSOLE FALSE
|
||||||
|
|
|
@ -14,6 +14,7 @@ extern "C"
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#include "obd_error_codes.h"
|
#include "obd_error_codes.h"
|
||||||
|
#include "efifeatures.h"
|
||||||
#include "stdbool.h"
|
#include "stdbool.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -53,9 +54,13 @@ int getRusEfiVersion(void);
|
||||||
* @deprecated Global panic is inconvenient because it's hard to deliver the error message while whole instance
|
* @deprecated Global panic is inconvenient because it's hard to deliver the error message while whole instance
|
||||||
* is stopped. Please use firmwareWarning() instead
|
* is stopped. Please use firmwareWarning() instead
|
||||||
*/
|
*/
|
||||||
#define efiAssert(condition, message, result) { if (!(condition)) { firmwareError(message); return result; } }
|
#if EFI_ENABLE_ASSERTS
|
||||||
|
#define efiAssert(condition, message, result) { if (!(condition)) { firmwareError(message); return result; } }
|
||||||
#define efiAssertVoid(condition, message) { if (!(condition)) { firmwareError(message); return; } }
|
#define efiAssertVoid(condition, message) { if (!(condition)) { firmwareError(message); return; } }
|
||||||
|
#else /* EFI_ENABLE_ASSERTS */
|
||||||
|
#define efiAssert(condition, message, result) { (void)(condition); }
|
||||||
|
#define efiAssertVoid(condition, message) { (void)(condition); }
|
||||||
|
#endif /* EFI_ENABLE_ASSERTS */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
#ifndef EFIFEATURES_H_
|
#ifndef EFIFEATURES_H_
|
||||||
#define EFIFEATURES_H_
|
#define EFIFEATURES_H_
|
||||||
|
|
||||||
|
#define EFI_ENABLE_ASSERTS TRUE
|
||||||
|
|
||||||
#define EFI_HISTOGRAMS TRUE
|
#define EFI_HISTOGRAMS TRUE
|
||||||
|
|
||||||
#define EFI_CLI_SUPPORT FALSE
|
#define EFI_CLI_SUPPORT FALSE
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
#ifndef EFIFEATURES_H_
|
#ifndef EFIFEATURES_H_
|
||||||
#define EFIFEATURES_H_
|
#define EFIFEATURES_H_
|
||||||
|
|
||||||
|
#define EFI_ENABLE_ASSERTS TRUE
|
||||||
|
|
||||||
#define EFI_SIMULATOR TRUE
|
#define EFI_SIMULATOR TRUE
|
||||||
|
|
||||||
#define EFI_SUPPORT_DODGE_NEON TRUE
|
#define EFI_SUPPORT_DODGE_NEON TRUE
|
||||||
|
|
Loading…
Reference in New Issue