Move configASSERT default definition above before including portable.h. (#1185)

Move configASSERT default definition above before including portable.h.
This commit is contained in:
ActoryOu 2024-11-04 19:05:52 +08:00 committed by GitHub
parent 445336aad9
commit a27d6650ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
62 changed files with 68 additions and 68 deletions

View file

@ -94,6 +94,13 @@
#define configUSE_MALLOC_FAILED_HOOK 0
#endif
#ifndef configASSERT
#define configASSERT( x )
#define configASSERT_DEFINED 0
#else
#define configASSERT_DEFINED 1
#endif
/* Basic FreeRTOS definitions. */
#include "projdefs.h"
@ -364,13 +371,6 @@
#error configMAX_TASK_NAME_LEN must be set to a minimum of 1 in FreeRTOSConfig.h
#endif
#ifndef configASSERT
#define configASSERT( x )
#define configASSERT_DEFINED 0
#else
#define configASSERT_DEFINED 1
#endif
/* configPRECONDITION should be defined as configASSERT.
* The CBMC proofs need a way to track assumptions and assertions.
* A configPRECONDITION statement should express an implicit invariant or