diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-27 01:02:58 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-27 01:02:58 -0700 |
commit | 52df9afd679fd0f42edeef29f0bbc0d7bd76559e (patch) | |
tree | bcb28585a0195560e0551012ec2cfb33833ef917 /host/lib/usrp/usrp2/usrp2_impl.cpp | |
parent | dd41206f2a5127871fc4c9911a748f7f4e3b6c51 (diff) | |
download | uhd-52df9afd679fd0f42edeef29f0bbc0d7bd76559e.tar.gz uhd-52df9afd679fd0f42edeef29f0bbc0d7bd76559e.tar.bz2 uhd-52df9afd679fd0f42edeef29f0bbc0d7bd76559e.zip |
Split utils.hpp into subdir with multiple files.
static for static block and static instance (singleton)
assert for assertion and throwing related stuff
algorithm for my addons to std::algorithm (has)
and a new one, safe main, for having a main catch-all
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index 35a4aeb20..9dce351be 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -16,7 +16,8 @@ // #include <uhd/transport/if_addrs.hpp> -#include <uhd/utils.hpp> +#include <uhd/utils/assert.hpp> +#include <uhd/utils/static.hpp> #include <boost/format.hpp> #include <boost/foreach.hpp> #include <boost/bind.hpp> @@ -28,7 +29,7 @@ using namespace uhd::usrp; using namespace uhd::transport; namespace asio = boost::asio; -STATIC_BLOCK(register_usrp2_device){ +UHD_STATIC_BLOCK(register_usrp2_device){ device::register_device(&usrp2::discover, &usrp2::make); } |