site_scons: added option to overwrite TEST_EXTRA_LIBS in BoostUnitTest target
[senf.git] / senf / PPI / EventManager.cc
index 60a56ca..59cf31f 100644 (file)
 
 //#include "EventManager.mpp"
 #define prefix_
-///////////////////////////////cc.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 
-///////////////////////////////////////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // senf::ppi::EventManager
 
-////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 // private members
 
 prefix_ void senf::ppi::EventManager::destroyModule(module::Module & module)
@@ -56,10 +56,13 @@ prefix_ void senf::ppi::EventManager::destroyEvent(EventDescriptor & event)
     SENF_ASSERT(
         std::find_if(registrations_.begin(), registrations_.end(),
                      l::bind(&detail::EventBindingBase::descriptor_,_1) == &event)
-        == registrations_.end());
+        == registrations_.end(),
+        "Internal failure: registrations still active while destroying event."
+        "Maybe you've put the SENF_PPI_MODULE macro in a superclass instead of"
+        "in the subclass?");
 }
 
-///////////////////////////////cc.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #undef prefix_
 //#include "EventManager.mpp"