| 584 | } |
| 585 | |
| 586 | std::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 | |
| 595 | std::string TD_TL_writer_cpp::gen_fetch_function_result_end() const { |
| 596 | return ";\n" |
nothing calls this directly
no outgoing calls
no test coverage detected