This repository has been archived on 2024-05-15. You can view files and clone it, but cannot push or open issues or pull requests.
fugg/fugg-core/src/wasm.h

27 lines
614 B
C++

#pragma once
#include <client.h>
#include <wasm-rt.h>
namespace fugg {
namespace wasm {
struct FunctionTable {
};
struct LinearMemory {
};
class Module {
const wasm_rt_table_t *const *function_table;
const wasm_rt_memory_t *const *memory;
public:
explicit Module(
wasm_rt_table_t **function_table,
wasm_rt_memory_t **memory
) : function_table(function_table), memory(memory) { }
};
static auto kModule = Module { &Z_clientZ_table, &Z_clientZ_memory };
}
}