Reputation: 258
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>
};
Upvotes: 2
Views: 108
Reputation: 30489
mqsvctable.h
containing list of functions
under BUILd_SVC_MQ
macro. Something likeBUILd_SVC_MQ("clear", clear_screen) BUILd_SVC_MQ("delete", delete_something)
Upvotes: 3