| 1 | // Copyright 2014 Renato Tegon Forti, Antony Polukhin. |
|---|---|
| 2 | // Copyright Antony Polukhin, 2015-2024. |
| 3 | // |
| 4 | // Distributed under the Boost Software License, Version 1.0. |
| 5 | // (See accompanying file LICENSE_1_0.txt |
| 6 | // or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 7 | |
| 8 | //[plugcpp_my_plugin_static |
| 9 | #include <boost/dll/alias.hpp> // for BOOST_DLL_ALIAS |
| 10 | #include <boost/shared_ptr.hpp> |
| 11 | #include "../tutorial_common/my_plugin_api.hpp" |
| 12 | |
| 13 | namespace my_namespace { |
| 14 | boost::shared_ptr<my_plugin_api> create_plugin(); // Forward declaration |
| 15 | } // namespace my_namespace |
| 16 | |
| 17 | BOOST_DLL_ALIAS( |
| 18 | my_namespace::create_plugin, // <-- this function is exported with... |
| 19 | create_plugin // <-- ...this alias name |
| 20 | ) |
| 21 | //] |
| 22 | |
| 23 |
