I use SES to export KEIL projects. When viewing texts in SES I found out that definitions disappear. If the definition is made not in the file itself, then this definition disappears. By iterating, I discovered that a defect occurs (for example) when connecting the standard CMSIS file - "core_cm0.h". If you remove it, the definition works fine. If enabled, the definition disappears.
I made a simple test - in your example I added a few lines - the file main.h with the definition and include "core_cm0.h". If [#include "core_cm0.h"] is disabled, the display is correct. If enabled, the definition disappears.
In KEIL and when compiling there are no problems, everything works well in any way. The problem is only in the SES IDE show.
Comment:
In the project "Hello", please put "//" or delete the line [#include "core_cm0.h" // <<<< IT !!] and look at the colors of the lines after "#ifdef".
I made a simple test - in your example I added a few lines - the file main.h with the definition and include "core_cm0.h". If [#include "core_cm0.h"] is disabled, the display is correct. If enabled, the definition disappears.
In KEIL and when compiling there are no problems, everything works well in any way. The problem is only in the SES IDE show.
Comment:
In the project "Hello", please put "//" or delete the line [#include "core_cm0.h" // <<<< IT !!] and look at the colors of the lines after "#ifdef".