Could I find help dissecting this macro. The syntax seems familiar yet strange.
#define MACRO_NAME [0] = value0, [1] = value1, [2] = value3
It's a macro I came across while maintaining code. Any help would be much appreciated.
Could I find help dissecting this macro. The syntax seems familiar yet strange.
#define MACRO_NAME [0] = value0, [1] = value1, [2] = value3
It's a macro I came across while maintaining code. Any help would be much appreciated.
Copyright © 2021 Jogjafile Inc.
This is a simple macro. The preprocessor will replace any occurrence of
MACRO_NAMEwith[0] = value0, [1] = value1, [2] = value3.Thus, the macro seems to have a purpose in designated initialization of an array, however, its usefulness is difficult to imagine. It requires that
value0,value1, andvalue3are defined (either as variables or macros) at the place whereMACRO_NAMEis expanded.E.g.: