Skip to content

Commit

Permalink
Move configASSERT default definition above before including portable.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
ActoryOu committed Nov 4, 2024
1 parent 7d76dce commit f0d9081
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/FreeRTOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f0d9081

Please sign in to comment.