In task.h (L35), we can find:
```C
#ifndef INC_FREERTOS_H
#error “include FreeRTOS.h must appear in source files before include task.h”
#endif
```
Why not just including it ?
Thank you,
Jona
In task.h (L35), we can find:
```C
#ifndef INC_FREERTOS_H
#error “include FreeRTOS.h must appear in source files before include task.h”
#endif
```
Why not just including it ?
Thank you,
Jona
I’m responsible for the original FreeRTOS coding standard. A lot of which is a hangover from doing safety work. The intent is to make the order of header file inclusion obvious and under control of the coder. Specifically not including header files from other header files that can be hidden from the coder and may even hinder the coder. The only place FreeRTOS does that is to get the inclusion of the portable header files and the configuration file defaults in the necessary order, and that is out of view of the application writer.