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

Method emitFrameDebugString

tools/ipc_codegen/ipc_codegen.cpp:840–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838 }
839
840 void emitFrameDebugString(const std::string& cls, const FrameDecl& frame) {
841 out_ << " std::string DebugString() const {\n"
842 " std::ostringstream os;\n"
843 << " os << \"" << cls << "{\";\n";
844 for (size_t i = 0; i < frame.fields.size(); ++i) {
845 if (i) out_ << " os << ' ';\n";
846 out_ << " detail::AppendField(os, \"" << frame.fields[i].name
847 << "\", " << frame.fields[i].name << "());\n";
848 }
849 out_ << " os << '}';\n"
850 " return os.str();\n"
851 " }\n";
852 }
853
854 void emitIPCInterfaceCall() {
855 out_ << "class IPCInterfaceCall {\n"

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected