From aadc96b7e5e5f5a4e64b0b06d60659046c48d3b3 Mon Sep 17 00:00:00 2001 From: Corentin Schreiber Date: Fri, 1 Sep 2023 11:40:17 +0100 Subject: [PATCH] Added missing exports --- include/snitch/snitch_registry.hpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/include/snitch/snitch_registry.hpp b/include/snitch/snitch_registry.hpp index 24d36f2e..9b390ab1 100644 --- a/include/snitch/snitch_registry.hpp +++ b/include/snitch/snitch_registry.hpp @@ -58,8 +58,8 @@ constexpr test_ptr to_test_case_ptr(const F&) noexcept { struct abort_exception {}; -bool parse_colour_mode_option(registry& reg, std::string_view color_option) noexcept; -bool parse_color_option(registry& reg, std::string_view color_option) noexcept; +SNITCH_EXPORT bool parse_colour_mode_option(registry& reg, std::string_view color_option) noexcept; +SNITCH_EXPORT bool parse_color_option(registry& reg, std::string_view color_option) noexcept; } // namespace snitch::impl namespace snitch { @@ -71,17 +71,19 @@ struct filter_result { bool implicit = false; }; -[[nodiscard]] filter_result filter_result_and(filter_result first, filter_result second) noexcept; +SNITCH_EXPORT [[nodiscard]] filter_result +filter_result_and(filter_result first, filter_result second) noexcept; -[[nodiscard]] filter_result filter_result_or(filter_result first, filter_result second) noexcept; +SNITCH_EXPORT [[nodiscard]] filter_result +filter_result_or(filter_result first, filter_result second) noexcept; -[[nodiscard]] filter_result +SNITCH_EXPORT [[nodiscard]] filter_result is_filter_match_name(std::string_view name, std::string_view filter) noexcept; -[[nodiscard]] filter_result +SNITCH_EXPORT [[nodiscard]] filter_result is_filter_match_tags(std::string_view tags, std::string_view filter) noexcept; -[[nodiscard]] filter_result +SNITCH_EXPORT [[nodiscard]] filter_result is_filter_match_id(std::string_view name, std::string_view tags, std::string_view filter) noexcept; using print_function = small_function; @@ -261,13 +263,13 @@ class registry { std::string_view message) const noexcept; // Internal API; do not use. - impl::test_state run(impl::test_case& test) noexcept; + SNITCH_EXPORT impl::test_state run(impl::test_case& test) noexcept; // Internal API; do not use. - bool run_tests(std::string_view run_name) noexcept; + SNITCH_EXPORT bool run_tests(std::string_view run_name) noexcept; // Internal API; do not use. - bool run_selected_tests( + SNITCH_EXPORT bool run_selected_tests( std::string_view run_name, const filter_info& filter_strings, const small_function& filter) noexcept;