summaryrefslogtreecommitdiffstats
path: root/host/lib/utils.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-05 17:03:59 -0700
committerJosh Blum <josh@joshknows.com>2010-05-05 17:03:59 -0700
commitf27400cd391d2d276df964d8c26ee08aa8ca3662 (patch)
tree084236f5fcdddf4aab1dc73ddf19bf02e716e0ea /host/lib/utils.cpp
parent3198ff91dcd3a06433654f9e50818f4566cbbe13 (diff)
downloaduhd-f27400cd391d2d276df964d8c26ee08aa8ca3662.tar.gz
uhd-f27400cd391d2d276df964d8c26ee08aa8ca3662.tar.bz2
uhd-f27400cd391d2d276df964d8c26ee08aa8ca3662.zip
Removed the boost exception stuff, replaced it with macro that formats the throw site information.
SWIG didnt handle the boost exception stuff, even with custom exception wrappers. Now the boost requirement can be lowered back to 3.6.
Diffstat (limited to 'host/lib/utils.cpp')
-rw-r--r--host/lib/utils.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/utils.cpp b/host/lib/utils.cpp
index 3a1e5aa3f..d2f4dfc6e 100644
--- a/host/lib/utils.cpp
+++ b/host/lib/utils.cpp
@@ -15,11 +15,20 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
+#include <uhd/utils/assert.hpp>
#include <uhd/utils/props.hpp>
+#include <stdexcept>
using namespace uhd;
/***********************************************************************
+ * Assert
+ **********************************************************************/
+assert_error::assert_error(const std::string &what) : std::runtime_error(what){
+ /* NOP */
+}
+
+/***********************************************************************
* Props
**********************************************************************/
named_prop_t::named_prop_t(