From 7cc534aaf90ff34e052b18745824e019e2c729f7 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Fri, 15 Sep 2023 14:16:45 +0300 Subject: [PATCH] add geodehidden to gd classes for macos --- codegen/src/BindingGen.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/codegen/src/BindingGen.cpp b/codegen/src/BindingGen.cpp index eb4359c3..6969f4a6 100644 --- a/codegen/src/BindingGen.cpp +++ b/codegen/src/BindingGen.cpp @@ -29,7 +29,7 @@ namespace { namespace format_strings { )GEN"; char const* class_start = R"GEN( -class {class_name}{base_classes} {{ +class {hidden}{class_name}{base_classes} {{ public: static constexpr auto CLASS_NAME = "{class_name}"; )GEN"; @@ -185,7 +185,8 @@ std::string generateBindingHeader(Root const& root, ghc::filesystem::path const& single_output += fmt::format(::format_strings::class_start, fmt::arg("class_name", cls.name), - fmt::arg("base_classes", supers) + fmt::arg("base_classes", supers), + fmt::arg("hidden", str_if("GEODE_HIDDEN ", (codegen::platform & (Platform::Mac | Platform::iOS)) != Platform::None)) ); // what.