summaryrefslogtreecommitdiff
path: root/modules/tools
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tools')
-rw-r--r--modules/tools/c++/c_gen_iface.hpp13
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
*/