Arm Mbed OS support forum

#define macro error

Hello members,

I had an issue about compiler regarding to “define” macro.

As I set define macro without value below,

#define ABCDEF

the error occur :

Unknown type name ABCDEF

Is it invalid such macro usage ?

Hello,

I do not think so

c - #define IDENTIFIER without a token - Stack Overflow

BR, Jan