33 #ifndef WALLAROO_DETAIL_DYNAMIC_LIBRARY_UNIX_H_
34 #define WALLAROO_DETAIL_DYNAMIC_LIBRARY_UNIX_H_
52 libHandle = dlopen( fileName.c_str(), RTLD_LAZY | RTLD_GLOBAL );
53 if ( ! libHandle )
throw WrongFile( fileName );
61 template <
typename F >
64 F f = (F)dlsym( libHandle, funcName.c_str() );
65 if ( dlerror() !=
nullptr )
return nullptr;
74 #if defined(__APPLE__)
80 #elif defined(hpux) || defined(_hpux)
86 #elif defined(__CYGWIN__)
107 #endif // WALLAROO_DETAIL_DYNAMIC_LIBRARY_UNIX_H_
#define nullptr
Definition: cxx0x.h:81
Definition: attribute.h:45
Definition: exceptions.h:176