[英]function pointer used in struct in C
Could anyone explain the following syntax of code for structures in C ? 谁能解释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. mqsvctable.h
包含BUILd_SVC_MQ
宏下的功能列表。 Something like BUILd_SVC_MQ("clear", clear_screen) BUILd_SVC_MQ("delete", delete_something)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.