diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-22 17:44:27 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-07-22 17:44:27 +0200 |
commit | 977ac8bce989285eaabc76c4ed8571ce5fd6793a (patch) | |
tree | 08df4e53e4f2ea947662cc6b1d207ed852292474 /modules/tools | |
parent | fdf1b23129d73b27b28756e77da9b02215878721 (diff) |
wip
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; { |