27 lines
614 B
C++
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 };
|
|
}
|
|
} |