FE 0.13.1
Header-only C++ frontend library
Loading...
Searching...
No Matches
dl.h
Go to the documentation of this file.
1#pragma once
2
3namespace fe::dl {
4
5/// File name extension of a dynamic library on this platform.
6static 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.
14void* open(const char* filename);
15
16/// Looks up @p symbol_name in @p handle or throws.
17void* get(void* handle, const char* symbol_name);
18
19/// Unloads @p handle or throws.
20void close(void* handle);
21
22} // namespace fe::dl
Definition dl.h:3
void close(void *handle)
Unloads handle or throws.
void * get(void *handle, const char *symbol_name)
Looks up symbol_name in handle or throws.
static constexpr auto extension
File name extension of a dynamic library on this platform.
Definition dl.h:6
void * open(const char *filename)
Loads the dynamic library filename or throws.