Kagome
Polkadot Runtime Engine in C++17
runtime_external_interface.cpp File Reference
Include dependency graph for runtime_external_interface.cpp:

Go to the source code of this file.

Namespaces

 kagome::runtime
 
 kagome::runtime::binaryen
 

Macros

#define REGISTER_HOST_API_FUNC(name)
 check arg num and call HostApi method macro Aims to reduce boiler plate code and method name mentions. Uses name argument as a string and a template argument. More...
 

Variables

static const wasm::Name kagome::runtime::binaryen::env = "env"
 

Macro Definition Documentation

#define REGISTER_HOST_API_FUNC (   name)
Value:
imports_[#name] = \
&importCall<&host_api::HostApi ::name>

check arg num and call HostApi method macro Aims to reduce boiler plate code and method name mentions. Uses name argument as a string and a template argument.

Parameters
namemethod name
Returns
result of method invocation

Definition at line 114 of file runtime_external_interface.cpp.