src/runtime/binaryen/wasm_executor.hpp
Namespaces
Classes
Functions
Functions Documentation
function OUTCOME_HPP_DECLARE_ERROR_2
OUTCOME_HPP_DECLARE_ERROR_2(
sgns::runtime::binaryen ,
WasmExecutor::Error
)
Source code
#ifndef SUPERGENIUS_SRC_RUNTIME_WASM_EXECUTOR_IMPL_HPP
#define SUPERGENIUS_SRC_RUNTIME_WASM_EXECUTOR_IMPL_HPP
#include "base/buffer.hpp"
#include "base/logger.hpp"
#include "runtime/binaryen/module/wasm_module.hpp"
namespace sgns::runtime::binaryen {
class WasmExecutor {
public:
enum class Error { EXECUTION_ERROR = 1 };
outcome::result<wasm::Literal> call(WasmModuleInstance &module_instance,
wasm::Name method_name,
const std::vector<wasm::Literal> &args);
};
} // namespace sgns::runtime::binaryen
OUTCOME_HPP_DECLARE_ERROR_2(sgns::runtime::binaryen, WasmExecutor::Error);
#endif // SUPERGENIUS_SRC_RUNTIME_WASM_EXECUTOR_IMPL_HPP
Updated on 2026-03-04 at 13:10:45 -0800