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/load_modules.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/load_modules.cpp')
-rw-r--r-- | host/lib/load_modules.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/load_modules.cpp b/host/lib/load_modules.cpp index 77426b898..babff1ca5 100644 --- a/host/lib/load_modules.cpp +++ b/host/lib/load_modules.cpp @@ -15,7 +15,7 @@ // along with this program. If not, see <http://www.gnu.org/licenses/>. // -#include <uhd/utils.hpp> +#include <uhd/utils/static.hpp> #include <boost/format.hpp> #include <boost/foreach.hpp> #include <boost/algorithm/string.hpp> @@ -101,7 +101,7 @@ static void load_path(const fs::path &path){ * Load all the modules given by the module path enviroment variable. * The path variable may be several paths split by path separators. */ -STATIC_BLOCK(load_modules){ +UHD_STATIC_BLOCK(load_modules){ //get the environment variable module path char *env_module_path = std::getenv("UHD_MODULE_PATH"); if (env_module_path == NULL) return; |