MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / gen_fetch_function_result_begin

Method gen_fetch_function_result_begin

tl/generate/tl_writer_cpp.cpp:586–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584}
585
586std::string TD_TL_writer_cpp::gen_fetch_function_result_begin(const std::string &parser_name,
587 const std::string &class_name,
588 const tl::tl_tree *result) const {
589 return "\n" + class_name + "::ReturnType " + class_name + "::fetch_result(" + parser_name +
590 " &p) {\n"
591 "#define FAIL(error) p.set_error(error); return ReturnType()\n"
592 " return ";
593}
594
595std::string TD_TL_writer_cpp::gen_fetch_function_result_end() const {
596 return ";\n"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected