I have a code from ex colleague. he declared some sort of macro like this :
#define work_dir "/usr/io/track"
#define macro_test(a1,a2,a3,a4)\
{\
.name=a1,\
.family=a2,\
.idnum=a3,\
.badlog=a4,\
}
and later on he called this macro like:
macro_test(test "John","macdonald",14,"no");
I know this might not enough detail, however I am just wondering about declaring this sort of macro. it seems to initialize structure but it is not. much appreciated if you can help me.