mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -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";
|
||||
|
||||
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.
|
||||
|
|
Loading…
Reference in a new issue