mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
add geodehidden to gd classes for macos
This commit is contained in:
parent
889bb77e6d
commit
7cc534aaf9
1 changed files with 3 additions and 2 deletions
|
@ -29,7 +29,7 @@ namespace { namespace format_strings {
|
||||||
)GEN";
|
)GEN";
|
||||||
|
|
||||||
char const* class_start = R"GEN(
|
char const* class_start = R"GEN(
|
||||||
class {class_name}{base_classes} {{
|
class {hidden}{class_name}{base_classes} {{
|
||||||
public:
|
public:
|
||||||
static constexpr auto CLASS_NAME = "{class_name}";
|
static constexpr auto CLASS_NAME = "{class_name}";
|
||||||
)GEN";
|
)GEN";
|
||||||
|
@ -185,7 +185,8 @@ std::string generateBindingHeader(Root const& root, ghc::filesystem::path const&
|
||||||
|
|
||||||
single_output += fmt::format(::format_strings::class_start,
|
single_output += fmt::format(::format_strings::class_start,
|
||||||
fmt::arg("class_name", cls.name),
|
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.
|
// what.
|
||||||
|
|
Loading…
Reference in a new issue