diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-16 15:09:57 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-16 15:09:57 +0200 |
commit | f619c4093e564562ce2d48f8cf9b8bcac859009c (patch) | |
tree | 3dbc67f328bdd657c9b1e7cc870db52aa6cedf48 /modules/tools/c++ | |
parent | 3908c79fa4696bf5d1b7fa717e19a9192f4b29c3 (diff) |
Minor changes and setting up crypto module
Diffstat (limited to 'modules/tools/c++')
-rw-r--r-- | modules/tools/c++/c_gen_iface.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/tools/c++/c_gen_iface.hpp b/modules/tools/c++/c_gen_iface.hpp index 8016c6a..63cd3a7 100644 --- a/modules/tools/c++/c_gen_iface.hpp +++ b/modules/tools/c++/c_gen_iface.hpp @@ -489,6 +489,17 @@ struct lang_bind<schema::Struct<schema::Member<V,K>...>, binding::SyncC> { template<uint64_t i> static error_or<void> generate_translation_func(std::string& buff, const std::string_view& prefix, bool c_to_cpp){ + auto& tpe = state.tp_elements; + uint64_t id; + { + std::string hash_type_str = cfg.prefix + "_" + std::to_string(hash) + "_t"; + } + { + auto eov = lang_bind_helper::append_string(tpe.at(id).source, "\treturn void_t{};\n}\n"); + if(eov.is_error()){ + return eov; + } + } return void_t{}; } @@ -538,6 +549,8 @@ struct lang_bind<schema::Struct<schema::Member<V,K>...>, binding::SyncC> { /** * Generate translation element */ + { + } /** * Ensure generation of dependent types */ |