guanaqo
1.0.0-alpha.27
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 !_WIN32
4
#include <dlfcn.h>
5
#endif
6
7
namespace
guanaqo
{
8
9
DynamicLoadFlags::operator int()
const
{
10
#if _WIN32
11
return
0;
12
#else
13
return
(
global
? RTLD_GLOBAL : RTLD_LOCAL) |
//
14
(
lazy
? RTLD_LAZY : RTLD_NOW) |
//
15
(
nodelete
? RTLD_NODELETE : 0) |
16
#ifdef RTLD_DEEPBIND
17
(
deepbind
? RTLD_DEEPBIND : 0) |
18
#endif
19
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