[ekiga] Added a boost::throw_exception function



commit 0ea0c79836b9069f01c133801ac41d06dde4f099
Author: Julien Puydt <jpuydt gnome org>
Date:   Sun Sep 6 14:18:00 2009 +0200

    Added a boost::throw_exception function
    
    This is as Michael Rickmann suggested.

 lib/Makefile.am                           |    3 ++-
 lib/engine/framework/boost-exceptions.cpp |   11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 1a2302e..0b572a0 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -226,6 +226,7 @@ libekiga_la_SOURCES += \
 ##
 
 libekiga_la_SOURCES += \
+	$(engine_dir)/framework/boost-exceptions.cpp \
 	$(engine_dir)/framework/services.h \
 	$(engine_dir)/framework/map-key-iterator.h \
 	$(engine_dir)/framework/map-key-const-iterator.h \
@@ -741,4 +742,4 @@ libekiga_la_SOURCES += \
 	$(components_dir)/dx-videooutput/videooutput-main-dx.h
 
 libekiga_la_LDFLAGS += $(DX_LIBS)
-endif
\ No newline at end of file
+endif
diff --git a/lib/engine/framework/boost-exceptions.cpp b/lib/engine/framework/boost-exceptions.cpp
new file mode 100644
index 0000000..f597b15
--- /dev/null
+++ b/lib/engine/framework/boost-exceptions.cpp
@@ -0,0 +1,11 @@
+#include <iostream>
+#include <boost/throw_exception.hpp>
+
+#ifdef BOOST_NO_EXCEPTIONS
+void
+boost::throw_exception (const std::exception&)
+{
+  std::cerr << "Unhandled exception" << std::endl; // FIXME: do better
+  abort ();
+}
+#endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]