Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
dl.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdexcept>
4#include <string>
5
6namespace thorin::dl {
7
8static constexpr auto extension =
9#if defined(_WIN32)
10 "dll";
11#else
12 "so";
13#endif
14
15void* open(const char* filename);
16void* get(void* handle, const char* symbol_name);
17void close(void* handle);
18
19} // namespace thorin::dl
Definition dl.h:6
void * open(const char *filename)
Definition dl.cpp:17
static constexpr auto extension
Definition dl.h:8
void close(void *handle)
Definition dl.cpp:55
void * get(void *handle, const char *symbol_name)
Definition dl.cpp:36