FE
0.13.1
Header-only C++ frontend library
Toggle main menu visibility
Loading...
Searching...
No Matches
dl.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
fe::dl
{
4
5
/// File name extension of a dynamic library on this platform.
6
static
constexpr
auto
extension
=
7
#if defined(_WIN32)
8
"dll"
;
9
#else
10
"so"
;
11
#endif
12
13
/// Loads the dynamic library @p filename or throws.
14
void
*
open
(
const
char
* filename);
15
16
/// Looks up @p symbol_name in @p handle or throws.
17
void
*
get
(
void
* handle,
const
char
* symbol_name);
18
19
/// Unloads @p handle or throws.
20
void
close
(
void
* handle);
21
22
}
// namespace fe::dl
fe::dl
Definition
dl.h:3
fe::dl::close
void close(void *handle)
Unloads handle or throws.
fe::dl::get
void * get(void *handle, const char *symbol_name)
Looks up symbol_name in handle or throws.
fe::dl::extension
static constexpr auto extension
File name extension of a dynamic library on this platform.
Definition
dl.h:6
fe::dl::open
void * open(const char *filename)
Loads the dynamic library filename or throws.
fe
dl.h
Generated by
1.18.0