Archetype: cpp_export.hpp.mustache
Per-component shared-library export/import macros. All component profiles.
See the Template variable reference for the complete list of available variables and their semantics.
Template
The full template source. Edit here and re-tangle with
compass build --direct tangle_codegen_templates to regenerate
library/templates/cpp_export.hpp.mustache.
{{! GENERATED FILE — tangled from projects/ores.codegen/library/templates/cpp_component.org. Edit the org source. }}
{{{cpp_license}}}
{{#component}}
#ifndef {{full_name_upper}}_EXPORT_HPP
#define {{full_name_upper}}_EXPORT_HPP
#include <boost/config.hpp>
#ifdef {{full_name_upper}}_LIBRARY
# define {{full_name_upper}}_EXPORT BOOST_SYMBOL_EXPORT
#else
# define {{full_name_upper}}_EXPORT BOOST_SYMBOL_IMPORT
#endif
#endif
{{/component}}
See also
- Parent facet: C++ component templates
- Template variable reference