Question: Additional templates for cpp
Author: skrphvCreated Jul 16, 2021Updated Aug 30, 2022
Labelsimprovement
Good day!
Why additional templates
template<typename T> struct m3_type_to_sig<T*> : m3_sig<'*'> {};
template<typename T> struct m3_type_to_sig<const T*> : m3_sig<'*'> {};
template<typename T> struct m3_type_to_sig<const T* const> : m3_sig<'*'> {};not added to wasm3_cpp.h?
It allows to link to wasm-module external functions lite this:
void function(const SomeStruct* someStruct) {
...
};Source: wasm3/wasm3