Skip to content
Snippets Groups Projects
Commit eab86f3d authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

Added assert which might be helpful for debugging applications

parent 72bc6bf4
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,7 @@ namespace ChimeraTK {
* the corresponding FeedingFanOut, to which all slaves have to be added. */
template<typename UserType>
boost::shared_ptr<FeedingFanOut<UserType>> addNetwork(boost::shared_ptr<ChimeraTK::NDRegisterAccessor<UserType>> feedingNode) {
assert(feedingNode.get() != nullptr);
transferGroup.addAccessor(feedingNode);
auto feedingFanOut = boost::make_shared<FeedingFanOut<UserType>>( feedingNode->getName(), feedingNode->getUnit(),
feedingNode->getDescription(), feedingNode->getNumberOfSamples() );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment