CDRMonitor: NDEBUG
This commit is contained in:
@@ -102,6 +102,8 @@ getNode(CDRNodeInstance *inst)
|
||||
return inst->node;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
||||
#define PVDATA_REFCOUNT_MONITOR_DEFINE(NAME) \
|
||||
static CDRNodeInstance NAME ## _node={0,EPICS_THREAD_ONCE_INIT,#NAME}
|
||||
|
||||
@@ -117,5 +119,15 @@ static CDRNodeInstance NAME ## _node={0,EPICS_THREAD_ONCE_INIT,#NAME}
|
||||
getNode(&NAME ## _node)->decRef()
|
||||
|
||||
|
||||
#else
|
||||
|
||||
#define PVDATA_REFCOUNT_MONITOR_DEFINE(NAME)
|
||||
#define PVDATA_REFCOUNT_MONITOR_DESTRUCT(NAME)
|
||||
#define PVDATA_REFCOUNT_MONITOR_CONSTRUCT(NAME)
|
||||
#define PVDATA_REFCOUNT_MONITOR_INCREF(NAME)
|
||||
#define PVDATA_REFCOUNT_MONITOR_DECREF(NAME)
|
||||
|
||||
#endif
|
||||
|
||||
}}
|
||||
#endif /* CDRMONITOR_H */
|
||||
|
||||
Reference in New Issue
Block a user