Console: Add console logging documentation
[senf.git] / PPI / IOEvent.cc
index abb1974..c39d57a 100644 (file)
@@ -1,8 +1,8 @@
 // $Id$
 //
-// Copyright (C) 2007 
-// Fraunhofer Institute for Open Communication Systems (FOKUS) 
-// Competence Center NETwork research (NET), St. Augustin, GERMANY 
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
@@ -27,6 +27,7 @@
 //#include "IOEvent.ih"
 
 // Custom includes
+#include "../Utils/senfassert.hh"
 #include <boost/bind.hpp>
 
 //#include "IOEvent.mpp"
@@ -41,7 +42,7 @@
 
 prefix_ void senf::ppi::IOEvent::v_enable()
 {
-    Scheduler::instance().add(fd_, boost::bind(&IOEvent::cb,this,_1), 
+    Scheduler::instance().add(fd_, boost::bind(&IOEvent::cb,this,_1),
                               Scheduler::EventId(events_));
 }
 
@@ -59,7 +60,7 @@ prefix_ void senf::ppi::IOEvent::cb(Scheduler::EventId event)
             throw HangupException();
         else
             // This cannot happen.
-            BOOST_ASSERT(false);
+            SENF_ASSERT(false);
     } else {
         IOEventInfo info = { event };
         callback(info);