Could anyone explain the following syntax of code for structures in C ?
struct {
Fn *pmq;
}
service_MQ[] =
{
NULL
#define BUILd_SVC_MQ(name , func) , (Fn*) Func
#include<mqsvctable.h>
};
mqsvctable.h containing list of functions
under BUILd_SVC_MQ macro. Something likeBUILd_SVC_MQ("clear", clear_screen)
BUILd_SVC_MQ("delete", delete_something)
#define BUILD_SVC_MQ(name, func) , (Fn*) func