fix bindinggen breaking

This commit is contained in:
HJfod 2023-02-18 16:09:25 +02:00
parent a385cd2d5e
commit 9b1155e352

View file

@ -195,8 +195,6 @@ std::string generateBindingHeader(Root& root, ghc::filesystem::path const& singl
std::string addressDocs;
std::string docs = generateDocs(fb->docs);
if (auto i = field.get_as<InlineField>()) {
single_output += "\t" + i->inner + "\n";
continue;
@ -236,6 +234,8 @@ std::string generateBindingHeader(Root& root, ghc::filesystem::path const& singl
addressDocs = generateAddressDocs(field, fn);
}
std::string docs = generateDocs(fb->docs);
single_output += fmt::format(used_format,
fmt::arg("virtual", str_if("virtual ", fb->is_virtual)),
fmt::arg("static", str_if("static ", fb->is_static)),