I came across the below declaration ; what will be the scope of this MACRO ?
typedef struct Hdr_s {
#define MACRO1 1
#define MACRO2 2
#define MACRO3 3
unsigned char Flag;
unsigned char Offset;
unsigned short cpy_len_offset;
unsigned char cpy_offset;
}Hdr_t;
A macro definition remains for the whole remainder of the compilation, and macros aren’t scoped.