MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / emitLayouts

Method emitLayouts

tools/ipc_codegen/ipc_codegen.cpp:753–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751 }
752
753 void emitLayouts() {
754 out_ << "#pragma pack(push, 1)\n";
755 for (const auto& decl : file_.structs) {
756 out_ << "struct " << decl.name << "Layout {\n";
757 for (const auto& field : decl.fields)
758 out_ << " " << field.type << " " << field.name << ";\n";
759 out_ << "};\n\n";
760 }
761 out_ << "#pragma pack(pop)\n"
762 "} // namespace detail\n\n";
763 }
764
765 void emitIPCRequest() {
766 out_ << "class IPCRequest {\n"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected