diff options
| author | levlam <levlam@telegram.org> | 2023-06-26 13:14:26 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2023-06-26 13:14:26 +0300 |
| commit | aab207cdd287ccfd4c7abf8fffc0f089573e3f7a (patch) | |
| tree | c807aa0b989ee90d4ac6dea82b42a1370274c01e /tdtl | |
| parent | d171366faaba647877aa72eeb6e6e0a888edd83b (diff) | |
Extract gen_output_begin_once from gen_output_begin.
Diffstat (limited to 'tdtl')
| -rw-r--r-- | tdtl/td/tl/tl_generate.cpp | 1 | ||||
| -rw-r--r-- | tdtl/td/tl/tl_writer.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tdtl/td/tl/tl_generate.cpp b/tdtl/td/tl/tl_generate.cpp index 66d0dcee6..a3d0fd5d5 100644 --- a/tdtl/td/tl/tl_generate.cpp +++ b/tdtl/td/tl/tl_generate.cpp @@ -768,6 +768,7 @@ void write_tl(const tl_config &config, tl_outputer &out, const TL_writer &w) { find_complex_types(config, w); out.append(w.gen_output_begin()); + out.append(w.gen_output_begin_once()); std::set<std::string> request_types; std::set<std::string> result_types; diff --git a/tdtl/td/tl/tl_writer.h b/tdtl/td/tl/tl_writer.h index 66dbdd1f5..cce63bf8e 100644 --- a/tdtl/td/tl/tl_writer.h +++ b/tdtl/td/tl/tl_writer.h @@ -84,6 +84,7 @@ class TL_writer { virtual std::string gen_int_const(const tl_tree *tree_c, const std::vector<var_description> &vars) const = 0; virtual std::string gen_output_begin() const = 0; + virtual std::string gen_output_begin_once() const = 0; virtual std::string gen_output_end() const = 0; virtual std::string gen_import_declaration(const std::string &name, bool is_system) const = 0; |
