add NS_OBJECT_ENSURE_REGISTERED

This commit is contained in:
Mathieu Lacage committed 2008-01-03 11:30:02 +01:00
1 parent b41d008223
commit 2a4dcce444
1 file changed
+10
+10
View File
@@ -28,6 +28,16 @@
#include "callback.h"
#include "empty.h"
#define NS_OBJECT_ENSURE_REGISTERED(type) \
static struct X##type##RegistrationClass \
{ \
X##type##RegistrationClass () { \
ns3::InterfaceId iid = type::iid (); \
iid.GetParent (); \
} \
} x_##type##RegistrationVariable
namespace ns3 {
class TraceContext;