]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/python/test/module_init_exception.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / python / test / module_init_exception.cpp
diff --git a/ceph/src/boost/libs/python/test/module_init_exception.cpp b/ceph/src/boost/libs/python/test/module_init_exception.cpp
new file mode 100644 (file)
index 0000000..d8cec57
--- /dev/null
@@ -0,0 +1,14 @@
+// Copyright (C) 2003 Rational Discovery LLC
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#include <boost/python/module.hpp>
+#include <stdexcept>
+
+using namespace boost::python;
+
+BOOST_PYTHON_MODULE(module_init_exception_ext)
+{
+    throw std::runtime_error("Module init failed");
+}