guanaqo
1.0.0-alpha.29
Utilities for scientific software
Loading...
Searching...
No Matches
dl-flags.cpp
Go to the documentation of this file.
1
#include <
guanaqo/dl-flags.hpp
>
2
3
#if defined(GUANAQO_HAVE_DLFCN)
4
#include <dlfcn.h>
5
#endif
6
7
namespace
guanaqo
{
8
9
DynamicLoadFlags::operator int()
const
{
10
#if defined(GUANAQO_HAVE_DLFCN)
11
return
(
global
? RTLD_GLOBAL : RTLD_LOCAL) |
//
12
(
lazy
? RTLD_LAZY : RTLD_NOW) |
//
13
(
nodelete
? RTLD_NODELETE : 0) |
14
#ifdef RTLD_DEEPBIND
15
(
deepbind
? RTLD_DEEPBIND : 0) |
16
#endif
17
0;
18
#else
19
return
0;
20
#endif
21
}
22
23
}
// namespace guanaqo
dl-flags.hpp
Flags wrapper for dynamic library loading.
guanaqo
Definition
blas-interface.hpp:9
guanaqo::DynamicLoadFlags::nodelete
bool nodelete
RTLD_NODELETE
Definition
dl-flags.hpp:19
guanaqo::DynamicLoadFlags::global
bool global
RTLD_GLOBAL (true) or RTLD_LOCAL (false).
Definition
dl-flags.hpp:15
guanaqo::DynamicLoadFlags::lazy
bool lazy
RTLD_LAZY (true) or RTLD_NOW (false).
Definition
dl-flags.hpp:17
guanaqo::DynamicLoadFlags::deepbind
bool deepbind
RTLD_DEEPBIND
Definition
dl-flags.hpp:21
src
dl-flags.cpp
Generated on
for guanaqo by
1.16.1