mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-11 22:25:14 -05:00
Added temporary work-around for VF's define_name bug.
For bug description, see minimal example `define_name`.
This commit is contained in:
parent
8aa7af3fd5
commit
997d39d894
1 changed files with 14 additions and 0 deletions
|
|
@ -28,6 +28,20 @@
|
|||
#ifndef TIMERS_H
|
||||
#define TIMERS_H
|
||||
|
||||
|
||||
#ifdef VERIFAST
|
||||
/* Reason for rewrite:
|
||||
* VeriFast bug:
|
||||
* Both `#ifdef INC_FREERTOS_H` and its negation `#ifdef INC_FREERTOS_H`
|
||||
* evaluate to true. See minimal example `define_name`.
|
||||
*/
|
||||
#define INC_FREERTOS_H
|
||||
/* Remember that this header is included indirectly `tasks.c` after it
|
||||
* includes `FreeRTOS.h`.
|
||||
*/
|
||||
// TODO: Remove this work-around once VF has been fixed.
|
||||
#endif /* VERIFAST */
|
||||
|
||||
#ifndef INC_FREERTOS_H
|
||||
#error "include FreeRTOS.h must appear in source files before include timers.h"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue