Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::webassembly::host_function_registrator< HostFunction, Preconditions > Struct Template Reference

Public Member Functions

template<typename Mod , typename Name >
constexpr host_function_registrator (Mod mod_name, Name fn_name)
 

Detailed Description

template<auto HostFunction, typename... Preconditions>
struct sysio::chain::webassembly::host_function_registrator< HostFunction, Preconditions >

Definition at line 288 of file sys-vm.cpp.

Constructor & Destructor Documentation

◆ host_function_registrator()

template<auto HostFunction, typename... Preconditions>
template<typename Mod , typename Name >
sysio::chain::webassembly::host_function_registrator< HostFunction, Preconditions >::host_function_registrator ( Mod mod_name,
Name fn_name )
inlineconstexpr

Definition at line 290 of file sys-vm.cpp.

290 {
292 rhf_t::add<HostFunction, Preconditions...>(mod_name.c_str(), fn_name.c_str());
293#ifdef SYSIO_SYS_VM_OC_RUNTIME_ENABLED
294 constexpr bool is_injected = (Mod() == BOOST_HANA_STRING(SYSIO_INJECTED_MODULE_NAME));
295 eosvmoc::register_eosvm_oc<HostFunction, is_injected, std::tuple<Preconditions...>>(
296 mod_name + BOOST_HANA_STRING(".") + fn_name);
297#endif
298 }
#define SYSIO_INJECTED_MODULE_NAME
Definition common.hpp:16
sysio::vm::registered_host_functions< webassembly::interface, sysio::vm::execution_interface, sysio::chain::type_converter > eos_vm_host_functions_t
Definition common.hpp:118
static void add(const std::string &mod, const std::string &name)
Here is the call graph for this function:

The documentation for this struct was generated from the following file: