bactria  0.0.1
The bactria library is a header-only C++14 library for profiling and tracing.
Plugin.hpp
Go to the documentation of this file.
1 /* Copyright 2021 Jan Stephan
2  *
3  * Licensed under the EUPL, Version 1.2 or - as soon they will be approved by
4  * the European Commission - subsequent versions of the EUPL (the “Licence”).
5  * You may not use this work except in compliance with the Licence.
6  * You may obtain a copy of the Licence at:
7  *
8  * http://ec.europa.eu/idabc/eupl.html
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the Licence is distributed on an “AS IS” basis, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * Licence permissions and limitations under the Licence.
14  */
15 
25 #pragma once
26 
27 #include <bactria/core/POSIX.hpp>
28 #include <bactria/core/Win32.hpp>
29 
30 #include <iostream>
31 
32 namespace bactria
33 {
42 
51  [[gnu::always_inline]] inline auto unload_plugin(plugin_handle_t handle) noexcept
52  {
53  system::close_plugin(handle);
54  }
55 } // namespace bactria
Win32.hpp
Windows-specific internals.
bactria::plugin_handle_t
system::plugin_handle_t plugin_handle_t
The platform-specific plugin handle type.
Definition: Plugin.hpp:41
bactria::unload_plugin
auto unload_plugin(plugin_handle_t handle) noexcept
Unloads the plugin.
Definition: Plugin.hpp:51
bactria::system::close_plugin
auto close_plugin(plugin_handle_t handle) noexcept
The POSIX-specific plugin unloader.
Definition: POSIX.hpp:99
POSIX.hpp
POSIX-specific internals.