diff --git a/fugg-client/src/main.cpp b/fugg-client/src/main.cpp index ebad226..7052245 100644 --- a/fugg-client/src/main.cpp +++ b/fugg-client/src/main.cpp @@ -67,8 +67,13 @@ void get_text(const std::string& text) { std::cout << text << " = \"" << result << "\"" << std::endl; } +uintptr_t to_outside(uint32_t ptr) { + return fugg::wasm::kMemory.address_of(ptr); +} + EMSCRIPTEN_BINDINGS(fugg) { emscripten::function("get_text", &get_text); + emscripten::function("to_outside", &to_outside); }; int main() {