Fix large debug_str for emitted Syms headers (#6889)

This commit is contained in:
Bartłomiej Chmiel 2026-01-07 14:18:54 +01:00 committed by GitHub
parent 112e1e3752
commit c7361f177b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -169,8 +169,8 @@ class EmitCHeader final : public EmitCConstInit {
putns(modp, name + "(" + ctorArgs + ");\n");
putns(modp, "~" + name + "();\n");
} else {
putns(modp, name + "() = default;\n");
putns(modp, "~" + name + "() = default;\n");
putns(modp, name + "();\n");
putns(modp, "~" + name + "();\n");
putns(modp, "void ctor(" + ctorArgs + ");\n");
putns(modp, "void dtor();\n");
}

View File

@ -135,6 +135,8 @@ class EmitCImp final : public EmitCFunc {
ofp()->indentDec();
puts(" {\n");
} else {
putns(modp, modName + "::" + modName + "() = default;\n");
putns(modp, modName + "::~" + modName + "() = default;\n\n");
putns(modp, "void " + modName + "::ctor(" + ctorArgs + ") {\n");
}