求各位帮忙给小弟解释一下这段代码,是ns3里面的
/**
* This macro should be invoked once for every class which
* defines a new GetTypeId method.
*/
#define NS_OBJECT_ENSURE_REGISTERED(type) \
static struct X##type##RegistrationClass \
{ \
X##type##RegistrationClass () { \
ns3::TypeId tid = type::GetTypeId (); \
tid.GetParent (); \
} \
} x_##type##RegistrationVariable
尤其不理解其中“##”,这只是名字里面的一个部分么,好奇怪啊?如果能结合ns3解释最好。