diff options
Diffstat (limited to 'modules/tools')
-rw-r--r-- | modules/tools/c++/c_gen_iface.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/tools/c++/c_gen_iface.hpp b/modules/tools/c++/c_gen_iface.hpp index 63cd3a7..3a648a1 100644 --- a/modules/tools/c++/c_gen_iface.hpp +++ b/modules/tools/c++/c_gen_iface.hpp @@ -488,7 +488,12 @@ struct lang_bind<schema::Struct<schema::Member<V,K>...>, binding::SyncC> { using Schema = schema::Struct<schema::Member<V,K>...>; template<uint64_t i> - static error_or<void> generate_translation_func(std::string& buff, const std::string_view& prefix, bool c_to_cpp){ + static error_or<void> generate_translation_func(const language_binding_config& cfg, language_binding_state& state, std::string& buff, bool c_to_cpp){ + using MT = typename parameter_pack_type<i,V...>::type; + static constexpr string_literal Lit = parameter_key_pack_type<i,K...>::literal; + + constexpr uint32_t hash = schema_hash<MT>::apply(); + auto& tpe = state.tp_elements; uint64_t id; { |